Click or drag to resize

ISettingsCurrentDataSource Property

Returns the current data source, this is the central database if you are logged into the central database or Local data source if you are traveling - requires login. This will return ODBC:DataSourceName. Requires login

Namespace:  SuperOffice.COM.SuperOfficeDB
Assembly:  SuperOfficeDB.Interop (in SuperOfficeDB.Interop.dll) Version: 8.0.0.0
Syntax
string CurrentDataSource { get; }

Property Value

Type: String
String – the data source.
Examples

CurrentDataSource

This text may be copied to the notepad, and saved as a *.vbs file. Remember to change the login information.

VB
Dim objSO
Set objSO = CreateObject("SuperOfficeDB.Database")
If not (objSO is nothing) Then
    objSO.login "<USERID>", "<PASSWORD>"
    msgbox "Current data source: " & objSO.Settings.CurrentDataSource, vbInformation + vbOKOnly, "SuperCOM"
    msgbox "Current archive path: " & objSO.Settings.CurrentArchivepath, vbInformation + vbOKOnly, "SuperCOM"
else
    MsgBox "Unable to connect to database"
end if
Set objSO = Nothing

See Also