RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TParameters.AssignValues Method

Assigns parameter values from another parameters collection.

Pascal
procedure AssignValues(Value: TParameters);
C++
__fastcall AssignValues(TParameters Value);

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

 

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