Bde.DBTables.TStoredProc.CopyParams
Delphi
procedure CopyParams(Value: TParams);
C++
void __fastcall CopyParams(Data::Db::TParams* Value);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
public | Bde.DBTables.pas Bde.DBTables.hpp |
Bde.DBTables | TStoredProc |
Description
Copies a stored procedure's parameters into another parameter list.
Call CopyParams to copy this stored procedure's parameters into a separate parameter list object. Value is the parameter list into which to assign this stored procedure's parameters. Value can be the parameter list of another stored procedure. For example:
TStoredProc1.CopyParams(TStoredProc2.Params);
StoredProc1->CopyParams(StoredProc2->Params);
If the stored procedure is not prepared when an application calls CopyParams, CopyParams calls Prepare before assigning the parameters to the target parameters list, and then calls UnPrepare to return the stored procedure to its previous state.