ITableSource.GetTable

Syntax

GetTable: IEaxGrid;

Description

The GetTable property returns a table.

Comments

To determine a data source for the TableWidget component, use the ITableWidget.Source property.

Example

Executing the example requires a form with the following components:

Specify an express report as a data source for the UiErAnalyzer1 component.

The example is a handler of the OnClick event for the Button1 component.

Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Var
    TSourse: ITableSource;
    Grid: IEaxGrid;
    ColumnsCount, RowsCount: Integer;
Begin
    TSourse := TableWidget1.Source;
    Grid := TSourse.GetTable As IEaxGrid;
    ColumnsCount := Grid.TabSheet.ColumnsCount-1;
    RowsCount := Grid.TabSheet.RowsCount-1;
    Text := "ID: " + Grid.Id + ", Column name: "
        + Grid.ColumnName(ColumnsCount)+ ", Row name: " + Grid.RowName(RowsCount);
End Sub Button1OnClick;

Clicking the button displays information about the table in the form title, the table is used as a data source for the TableWidget1 component.

See also:

ITableSource