SetDBConnection
Syntax
object.SetDBConnection
sConnStr
sConnStr
- A
String that specifies a connection string to be passed to ELS-QB.
Description
Call
this method to set the
connection string of the currently open connection node to the value of
sConnStr.
Remarks
SetDBConnection
method
returns True if operation successful, otherwise False.
Note:
A
connection
node must be open In the Connectiions Pane of ELS-QB Component
to be able to apply this function.
Example
This
sample code shows how to set a new connection string for currently active
connection in ELS-QB component..
Private Function
SetConnString(sNewConnStr As String) As
Boolean
Dim sCurrCon
SetConnString = False
sCurrCon =
ELS_QBCtrl.GetDBConnection
If sCurrCon <> sNewConnStr Then
SetConnString =
ELS_QBCtrl.SetDBConnection(sNewConnStr)
End
If
End
Function