RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TParams.ParamByName Method

Locates the parameter with a given name.

Pascal
function ParamByName(const Value: string): TParam;
C++
__fastcall TParam ParamByName(const AnsiString Value);

Use ParamByName to find a parameter with the name passed in Value. If a match is found, ParamByName returns the parameter. Otherwise, an exception is raised. Use this method rather than a direct reference to the Items property to avoid depending on the order of the entries. 

To locate a parameter by name without raising an exception if the parameter is not found, use the FindParam method. 

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) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!