TAdsConnection.GetTableNames

TAdsConnection

Advantage TDataSet Descendant

Populates a string list with the tables associated with the connection.

Syntax

procedure TAdsConnection.GetTableNames( poList : TStrings; strFileMask : String );

Description

Use GetTableNames to get a list of tables associated with the TAdsConnection component. The TAdsConnection.IsConnected property must be set to True before calling GetTableNames. If GetTableNames is called on a connection that uses the TAdsConnection.ConnectPath property, all files matching the strFileMask parameter will be returned. If GetTableNames is called on a connection that uses the TAdsConnection.AliasName property, tables matching the alias tabletype will be returned, and the strMask parameter will be ignored. If GetTableNames is called using an alias that points to an Advantage Data Dictionary, or a connection path that points to an Advantage Data Dictionary, the strFileMask parameter will be ignored, and all tables registered in the data dictionary will be returned.

See Also

AliasName

ConnectPath