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
Syntaxint OwnerContactId { get; }
ReadOnly Property OwnerContactId As Integer
Get
Dim instance As IDatabase
Dim value As Integer
value = instance.OwnerContactId
property int OwnerContactId {
int get ();
}
Property Value
Type:
Int32Long – The database internal ID of the contact (contact_id)
ExamplesDisplay the owners contactID
This text may be copied to the notepad, and saved as a *.vbs file. Remember to change the login information.
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