RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TParams.FindParam Method

Locates the parameter with a given name.

Pascal
function FindParam(const Value: WideString): TParam;
C++
__fastcall TParam FindParam(const BSTR Value);

Use FindParam to find a parameter with the name passed in Value. If a match is found, FindParam returns the parameter. Otherwise, it returns nil (Delphi) or NULL (C++). Use this method rather than a direct reference to the Items property to avoid depending on the order of the entries. 

To locate more than one parameter at a time, by name, use the GetParamList method instead. To get only the value of a named parameter, use the ParamValues property. 

 

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