Data.Win.ADODB.TADOCommand.Assign
Delphi
procedure Assign(Source: TPersistent); override;
C++
virtual void __fastcall Assign(System::Classes::TPersistent* Source);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
public | Data.Win.ADODB.pas Data.Win.ADODB.hpp |
Data.Win.ADODB | TADOCommand |
Description
Makes one ADO command component a duplicate of another.
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.