Data.Win.ADODB.TParameters.AssignValues

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure AssignValues(Value: TParameters);

C++

void __fastcall AssignValues(TParameters* Value);

Properties

Type Visibility Source Unit Parent
procedure
function
public
Data.Win.ADODB.pas
Data.Win.ADODB.hpp
Data.Win.ADODB TParameters

Description

Assigns parameter values from another parameters collection.

Call AssignValues to assign the values of parameters in the calling TParameters object using the values in another TParameters.



ADOQuery1.Parameters.AssignValues(ADOQuery2.Parameters);



ADOQuery1->Parameters->AssignValues(ADOQuery2->Parameters);



Each parameter with the same name as a parameter in the source TParameters specified in Value is assigned the value from the source parameter. Parameters in the calling TParameters object that do not exist in the source TParameters object are unaffected. Parameters that only exist in the source TParameters are not subsequently created in the calling TParameters object. For example if the calling TParameters has parameters named Parm1 and Parm2 and the source TParameters has Parm2 and Parm3:

Parm1 in the calling TParameters is unaffected.

Parm2 gets the value of Parm2 in the source TParameters.

No Parm3 is created in the calling TParameters.

See Also