RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
IActionFieldValues.IndexOfField Method

Returns the index of a specified field.

Pascal
function IndexOfField(const AName: string): Integer;
C++
__fastcall int IndexOfField(const AnsiString AName);

IndexOfField returns the index of the field with the specified name. This method performs the reverse lookup from reading the FieldNames property. 

AName is the name of the field to locate. 

IndexOfField returns the index for the specified field. This index identifies the position of the field in the FieldNames, Values, and OrigValues property arrays. If the current HTTP request does not include a field with the specified name, IndexOfField returns –1. 

 

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