RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TFields.IndexOf Method

Finds the index of a field object in the Fields array from the field object.

Pascal
function IndexOf(Field: TField): Integer;
C++
__fastcall int IndexOf(TField Field);

Call IndexOf to get the index for a field in the Fields array. Specify the field as the Field parameter.  

The first field in the array has index 0, the second field has index 1, and so on. If a field is not in the Fields array, IndexOf returns -1. 

 

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