Data.DB.TParams.ParamByName
[–] Properties | |
---|---|
Type: function | |
Visibility: public | |
Source: Data.DB.pas Data.DB.hpp
| |
Unit: Data.DB | |
Parent: TParams |
Delphi
function ParamByName(const Value: string): TParam;
C++
TParam* __fastcall ParamByName(const System::UnicodeString Value);
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.