|
AnyDAC
|
Populates a string list with the names of fields in a table.
|
Parameters |
Description |
|
const ACatalogName: string |
A catalog name. |
|
const ASchemaName: string |
A schema name. |
|
const ATableName: string |
A table name. |
|
const APattern: string |
A LIKE-pattern. |
|
AList: TStrings |
A list receiving field names. |
Call GetFieldNames to retrieve a list of fields in a table.
ACatalogName, ASchemaName, ATableName names the table whose field names you want added to the list.
APattern is the LIKE-pattern filtering field names.
AList is a TStrings descendant that receives the field names. Any existing strings are deleted from the list before GetFieldNames adds the names of all the fields in ATableName.
The field names are normalized - enclosed into quotes, if that is required, otherwise converted to default dictionary case.
procedure GetFieldNames(const ACatalogName: string; const ASchemaName: string; const ATableName: string; const APattern: string; AList: TStrings);
ADConnection1.GetFieldNames('', '', 'MYTAB', '', ListBox1.Items);See AnyDAC\Samples\Comp Layer\TADConnection\GetFieldNames sample.
|
What do you think about this topic? Send feedback!
|