Click or drag to resize

IDatabaseUserAssociateId Property

Returns the associate id of the logged in user Use with Database.GetAssociate to get information on the user.

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

Property Value

Type: Int32
Long - the database id of the current user.
Examples

Get Id of the current user

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>"
    userid = objso.userassociateid
    set userobj = objso.getassociate(userid)
    msg = userobj.fullname
    msgbox msg, vbinformation, "superoffice user currently logged in:"
else
    msgbox "unable to connect to database"
end if
set objso = nothing

See Also