Click or drag to resize

IDatabaseGetContact Method

Returns a Contact object with a given ID. Returns an error if the contact is not readable.

Namespace:  SuperOffice.COM.SuperOfficeDB
Assembly:  SuperOfficeDB.Interop (in SuperOfficeDB.Interop.dll) Version: 8.0.0.0
Syntax
SOContact GetContact(
	int ContactId
)

Parameters

ContactId
Type: SystemInt32
the contact’s database id

Return Value

Type: SOContact
SOContact – the specified contact
Examples

Get the contact with id = 45

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

VB
dim objso
dim objcontact
set objso =  CreateObject("superofficedb.database")
If not (objSO is nothing) Then
    objso.login  "<userid>", "<password>"
    set  objcontact = objso.getcontact(45)
    msgbox "company name of contact with  contact_id=45: " & objcontact.name
else
    msgbox  "unable to connect to database"
end if
set objso = nothing

See Also