RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TDataSetProvider.DoGetTableName Method

Generates an OnGetTableName event.

Pascal
procedure DoGetTableName(DataSet: TDataSet; var TableName: WideString); virtual;
C++
virtual __fastcall DoGetTableName(TDataSet DataSet, BSTR TableName);

The resolver calls DoGetTableName when it initializes the information it needs to apply updates. Override this method to provide an alternate mechanism for determining the name of the dataset that is the target of an update operation. 

DataSet is the dataset that is the target of the update operation. 

The name of the target dataset as it should appear in generated SQL statements is returned as the TableName parameter. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!