RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TBaseDataSetAdapterField.GetKeyName Method

Returns the name of the associated dataset field if it appears in the index (key) that the parent dataset adapter uses.

Pascal
function GetKeyName: string;
C++
__fastcall AnsiString GetKeyName();

The parent dataset adapter calls GetKeyName when assembling a list of the field names in the key it uses. GetKeyName returns the name of the underlying database field (the value of the DataSetField property) if the FieldFlags property includes ffInKey. Otherwise, GetKeyName returns an empty string. 

 

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