RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
IAdapterRequestParams.IndexOfParam Method

Returns the index of a specified name/value pair given its name.

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

IndexOfParam returns the index of the value associated with a specified name. This method performs the reverse lookup from reading the ParamNames property. 

AName is the name of the name/value pair to locate. 

IndexOfParam returns the index for the specified name/value pair. This index identifies the position of the pair in the ParamNames and ParamValues property arrays. If the current HTTP request does not include a name/value pair with the specified name, IndexOfParam returns –1. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!