SDAC

TCustomMSConnection.AssignConnect Method

Shares database connection between the TCustomMSConnection components.

Class

TCustomMSConnection

Syntax

procedure AssignConnect(Source: TCustomMSConnection);

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

Remarks

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

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

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