tableNum Function

Retrieves the table ID of the specified table.


int tableNum(str table)

Parameter

Description

table

The table for which to retrieve the table ID.

The table ID of the specified table.

This function is a compile-time function, which is a metadata assertion function. Compile-time functions take arguments that represent entities in the Application Object Tree (AOT) and validate these arguments at compile time. They have no effect at run time.

The following example sets the tableID variable to 77, which is the ID of the CustTable table.

static void tableNumExample(Args _args)
{
    int tableID;
    ;
    
    tableID = tableNum(CustTable);
    Global::info(strfmt("%1 is the table ID for the CustTable table.", tableID));

}
/****Infolog Display
Message (11:15:54 am)
77 is the table ID for the CustTable table.
****/

Community Additions

ADD
Show: