Data.DB.TParams.ParamByName
Delphi
function ParamByName(const Value: string): TParam;
C++
TParam* __fastcall ParamByName(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 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.