Bde.DBTables.TStoredProc.ParamByName

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function ParamByName(const Value: string): TParam;

C++

Data::Db::TParam* __fastcall ParamByName(const System::UnicodeString Value);

Properties

Type Visibility Source Unit Parent
function public
Bde.DBTables.pas
Bde.DBTables.hpp
Bde.DBTables TStoredProc

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";


See Also