UniDAC

TUniConnection.AssignConnect Method

Shares database connection between the TUniConnection components.

Class

TUniConnection

Syntax

procedure AssignConnect(Source: TUniConnection);

Parameters
Source
Preconnected TUniConnection component which connection is to be shared with the current TUniConnection component.

Remarks

Use the AssignConnect method to share database connection between the TUniConnection components.

AssignConnect assumes that the Source parameter points to a preconnected TUniConnection component which connection is to be shared with the current TUniConnection component. Note that AssignConnect doesn't make any references to the Source TUniConnection component. So before disconnecting parent TUniConnection component call AssignConnect(Nil) or the Disconnect method for all assigned connections.

See Also

© 1997-2024 Devart. All Rights Reserved. Request Support DAC Forum Provide Feedback