OpenDBConnection 

Syntax

object.OpenDBConnection  sConnName

sConnName        String that specifies the name of an existing connection node to be opened.

Description

Call this method to open an existing connection specifying only the connection name.

Remarks

OpenDBConnection method returns True if the connection is opened successfully, otherwise it returns False.

Example

This sample code shows how to open specified connection in ELS-QB component..

Private Function OpenSomeConnection(sConName As String) As Boolean

Dim sCurrName

OpenSomeConnection = True

sCurrName = ELS_QBCtrl.GetConnectionName

If sConnName <> Then

OpenSomeConnection = False

Exit Function

End If

If sCurrName <> sConName Then

OpenConnection = ELS_QBCtrl.OpenDBConnection(sConName)

End If

End Function