2.2.4.12.9 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