Try OpenEdge Now
skip to main content
ABL Reference
Class Properties and Methods Reference : GetTableInfoByID( ) method
 

GetTableInfoByID( ) method

Returns information about a temp-table when the ID is specified. The ID is a numeric value that identifies the temp-table and is maintained by the ABL virtual machine (AVM). If the ID is valid for an existing temp-table, this method returns TRUE. Otherwise, it returns FALSE.
Return type: LOGICAL
Access: PUBLIC STATIC
Applies to: Progress.Database.TempTableInfo class

Syntax

This method supports two overloaded versions. The first version returns the temp-table name and name of the procedure or class that instantiated the temp-table.
GetTableInfoByID( INPUT temp-table-id AS INTEGER,
OUTPUT table-name AS CHARACTER,
OUTPUT proc-name AS CHARACTER )
The second version returns the handle to the temp-table and the name of the procedure or class that instantiated the temp-table.
GetTableInfoByID( INPUT temp-table-id AS INTEGER,
OUTPUT table-handle AS HANDLE,
OUTPUT proc-name AS CHARACTER )
temp-table-id
An integer expression which evaluates the ID of the temp-table.
table-name
Returns a CHARACTER string with the name of the temp-table.
table-handle
Returns a HANDLE to the temp-table whose ID is specified.
proc-name
Returns a CHARACTER string with the procedure (or class) name. For a static temp-table, it is the procedure with the DEFINE TEMP-TABLE statement. For a dynamic temp-table, it is the procedure which executes the TEMP-TABLE-PREPARE() method. The name of the procedure is the name that is specified when you run mydir/test.p.