2.1.14.4.15 wks_from_book_sheet_name


Description

Attach a worksheet by [Book]Sheet string

Syntax

bool wks_from_book_sheet_name( Worksheet & wks, const string & strBookSheet )

Parameters

wks
[output] the worksheet variable to attach
strBookSheet
[input] [Book]Sheet string

Return

true if wks is successfully attached, false otherwise

Examples

EX1

void wks_from_book_sheet_name_ex1()
{
    Worksheet wks;
    string strSheetName  = "[Book1]Sheet1";
    if(wks_from_book_sheet_name(wks,strSheetName ))
        printf("It has %d columns\n", wks.GetNumCols());
    else
        out_str("[Book1]Data1 not a valid worksheet");
}

Remark

See Also

Header to Include

origin.h

Reference