Data.Win.ADODB.TADOCommand.Assign

From RAD Studio API Documentation
Jump to: navigation, search

[–] Properties
Type:
procedure
function
Visibility: public
Source:
Data.Win.ADODB.pas
Data.Win.ADODB.hpp
Unit: Data.Win.ADODB
Parent: TADOCommand

Delphi

procedure Assign(Source: TPersistent); override;

C++

virtual void __fastcall Assign(System::Classes::TPersistent* Source);

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.