RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
DRIntf.FindTableID Function

Returns the ID of a specified table.

Pascal
function FindTableID(const Database: TDatabaseID; const Table: string): TTableID;
C++
TTableID FindTableID(const TDatabaseID Database, const AnsiString Table);

DRIntf

Call FindTableID to get the ID for a table in the database specified by the Database parameter. This ID can be used for locating the database's fields in the Data Dictionary. 

The Database parameter specifies the database in which to locate the table. This ID can be obtained by calling FindDatabaseID

The Table parameter is the name of table. 

If the database ID is invalid or the named table is not in the Data Dictionary, FindTableID returns a null ID. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!