RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TIBStoredProc.ParamByName Method

Accesses parameter information based on a specified parameter name.

Pascal
function ParamByName(const Value: string): TParam;
C++
__fastcall TParam ParamByName(const AnsiString Value);

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 parameter's value at runtime, 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";

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!