MyDAC

TCustomMyConnection.AssignConnect Method

Shares database connection between the TCustomMyConnection components.

Class

TCustomMyConnection

Syntax

procedure AssignConnect(Source: TCustomMyConnection); virtual;

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

Remarks

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

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

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