Datasheet::GetLinkTable

Description

Find the table object in a graph layer that is linked to this worksheet

Syntax

BOOL GetLinkTable( Grid & grid, GraphObject & grTable = NULL )

Parameters

grid
[output] the Grid object inside the table
grTable
[output] the table object if not NULL. default is NULL.

Return

true if found, false if no linked table found

Examples

EX1

//Find if the table object in a graph layer that is linked to this worksheet 
void Datasheet_GetLinkTable_Ex1()
{
    Worksheet wks = Project.ActiveLayer();
    
    if(wks)
    {
        Grid grid;
        BOOL bRet = wks.GetLinkTable(grid);
        
        if(bRet)
            printf("the Grid object inside the table existed");    
    }
}

Remark

See Also

header to Include

origin.h