Bde.DBTables.TStoredProc.ParamByName
| [–] Properties | |
|---|---|
| Type: function | |
| Visibility: public | |
| Source: Bde.DBTables.pas Bde.DBTables.hpp
| |
| Unit: Bde.DBTables | |
| Parent: TStoredProc | |
Delphi
function ParamByName(const Value: string): TParam;
C++
Data::Db::TParam* __fastcall ParamByName(const System::UnicodeString Value);
Description
Accesses parameter information based on a specified parameter name.
Call ParamByName to return parameter information for a specific parameter based on its name. Value is the name of the parameter for which to retrieve information. Typically ParamByName is used to set an input value of a parameter at run time, or to retrieve the value of an output parameter. The following command line assigns the value "Jane Smith" as the value for the parameter named Contact:
StoredProc1.ParamByName('Contact').AsString := 'Jane Smith';
StoredProc1->ParamByName("Contact")->AsString = "Jane Smith";