Click or drag to resize

IDatabaseOwnerContactId Property

Returns the id of the owner contact The owner contact is the most important contact in the database, if this contact is deleted or changed without a new key code from SuperOffice the database is destroyed so it will return an error if you try to change e.g the name of the contact object with contact_id = ownercontactid.

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

Property Value

Type: Int32
Long – The database internal ID of the contact (contact_id)
Examples

Display the owners contactID

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>" 
    msg  = "owner contact id = " & objso.ownercontactid
    msg  = msg & vbcrlf & "owner country id = " &  objso.ownercountryid
    msgbox  msg, vbinformation, "supercom"
else
    msgbox  "unable to log in"
end if
set objso = nothing

See Also