Data.Win.ADODB.TCustomADODataSet.Clone

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: TCustomADODataSet

Delphi

procedure Clone(Source: TCustomADODataSet; LockType: TADOLockType = ltUnspecified);

C++

void __fastcall Clone(TCustomADODataSet* Source, TADOLockType LockType = (TADOLockType)(0x0));

Description

Duplicates another dataset in the calling component

Call Clone to make the recordset of the calling ADO dataset component a duplicate of the recordset active in another TCustomADODataSet descendant component. If the attempt to clone a dataset is successful, the current ADO dataset component's recordset will be the same as that in the other dataset. If unsuccessful, the recordset is set to nil (Delphi) or NULL (C++) and an EADOError exception raised.

LockType specifies the lock type to use when opening the clone recordset. By default, LockType is ltUnspecified.

See Also