RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomADODataSet.Clone Method

Duplicates another dataset in the calling component

Pascal
procedure Clone(Source: TCustomADODataSet; LockType: TADOLockType = ltUnspecified);
C++
__fastcall Clone(TCustomADODataSet Source, TADOLockType LockType = ltUnspecified);

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. 

 

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