RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TFields.CheckFieldName Method

Checks if a field name already exists in the TFields object.

Pascal
procedure CheckFieldName(const FieldName: string);
C++
__fastcall CheckFieldName(const AnsiString FieldName);

CheckFieldName checks for the field specified by FieldName in the Fields property array. If the field with the specified name is already listed, CheckFieldName raises an EDatabaseError exception with a duplicate field name error message. 

 

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