Datasheet::MakeRangeString

 

Contents

Description

Construct range string of worksheet or matrix by the specified range from parameters

Syntax

string MakeRangeString( LPCSTR lpcstrColName1, LPCSTR lpcstrColName2 = NULL, int iBeginRow = -1, int iEndRow = -1 )

Parameters

lpcstrColName1
[input] the name of the column from
lpcstrColName2
[input] the name of the column to
iBeginRow
[input] the index of selected row from, 0 offset
iEndRow
[input] the index of selected row to, -1 means the last row

Return

The range string

Examples

EX1

int Datasheet_MakeRangeString_Ex1()
{
    Worksheet wks = Project.ActiveLayer();
    if(wks)
    {
        string strRange = wks.MakeRangeString("A"); // this range string is selected whole column A
        out_str(strRange);
        
        strRange = wks.MakeRangeString("A", "B", 0, 12);
        out_str(strRange);    
    }
    return 0;
}

Remark

See Also

header to Included

origin.h