IBX.IBStoredProc.TIBStoredProc.CopyParams

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure CopyParams(Value: TParams);

C++

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

Properties

Type Visibility Source Unit Parent
procedure
function
public
IBX.IBStoredProc.pas
IBX.IBStoredProc.hpp
IBX.IBStoredProc TIBStoredProc

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:


TIBStoredProc1.CopyParams(TIBStoredProc2.Params); TIBStoredProc1->CopyParams(TIBStoredProc2->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.