Data.DB.TParams.FindParam
Delphi
function FindParam(const Value: string): TParam;
C++
TParam* __fastcall FindParam(const System::UnicodeString Value);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | Data.DB.pas Data.DB.hpp |
Data.DB | TParams |
Description
Locates the parameter with a given name.
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.