Bde.DBTables.TStoredProc.CopyParams

From RAD Studio API Documentation
Jump to: navigation, search

[–] Properties
Type:
procedure
function
Visibility: public
Source:
Bde.DBTables.pas
Bde.DBTables.hpp
Unit: Bde.DBTables
Parent: TStoredProc

Delphi

procedure CopyParams(Value: TParams);

C++

void __fastcall CopyParams(Data::Db::TParams* Value);

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.

See Also