Click or drag to resize

IDatabaseUsername Property

The associate name of the current user.

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

Property Value

Type: String
String – the username of the logged-in user
Examples

Get username of user current user

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

VB
dim objdb
set objdb =  CreateObject("superofficedb.database")
If Not (objDB is Nothing) Then
    objdb.login  "<userid>", "<password>" ' log in to the database
    msgbox  "username: " & objdb.username, vbinformation + vbokonly,  "supercom"
else
    msgbox  "unable to connect to database"
end if
set objso = nothing

See Also