<< Click to Display Table of Contents >> Navigation: ThinBASIC Modules > ADODB > ADODB Module Classes > ADODB_Connection > ADODB_Connection constructor |
Description
Instantiate an ADODB Connection Object variable.
Syntax
'---Declare a new pConnection variable
Dim pConnection As ADODB_CONNECTION
'---Instantiate it as new connection
pConnection = New ADODB_CONNECTION[(sConnectionString)]
Alternative declaration in one single line using ... As New ...
'---Declare a new pConnection variable and instantiate it
Dim pConnection As New ADODB_CONNECTION[(sConnectionString)]
Returns
None.
Parameters
Name |
Type |
Optional |
Meaning |
sConnectionString |
String |
Yes |
If present, an <ADODB_Connection>.Open will take place immediately. |
Remarks
Restrictions
See also
Examples