RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TSQLConnection.CloneConnection Method

Returns a copy of the SQL connection object.

Pascal
function CloneConnection: TSQLConnection;
C++
__fastcall TSQLConnection CloneConnection();

Call CloneConnection to create a duplicate of this SQLConnection object. CloneConnection instantiates a new TSQLConnection object and assigns its properties to match those of this SQLConnection object. 

The returned SQLConnection is owned by this TSQLConnection. That is, this SQL connection component frees the clone from its own destructor. 

 

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