RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TADOCommand.Assign Method

Makes one ADO command component a duplicate of another.

Pascal
procedure Assign(Source: TPersistent); override;
C++
virtual __fastcall Assign(TPersistent * Source);

Call Assign to copy the property values from one ADO command object to the properties of the current ADO command object. 

Source is the ADO command object from which property values are copied. Source must be another TADOCommand object or an instance of a descendant class.

ADOCommand1.Assign(ADOCommand2);

 

ADOCommand1->Assign(ADOCommand2);

Assign copies the values of the following properties specific to ADO command objects: 

Connection, if assigned; otherwise the ConnectionString property is copied. 

CommandText

CommandTimeout

CommandType

Prepared

Parameters

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!