Click or drag to resize

IDatabaseGetAssociate Method

Returns an Associate object with a given associate id.

Namespace:  SuperOffice.COM.SuperOfficeDB
Assembly:  SuperOfficeDB.Interop (in SuperOfficeDB.Interop.dll) Version: 8.0.0.0
Syntax
SOAssociate GetAssociate(
	int AssociateId
)

Parameters

AssociateId
Type: SystemInt32
the numeric database identifier

Return Value

Type: SOAssociate
SOAssociate – the specific associate record
Examples

Retrieve the associate with id = 12

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

VB
dim objso
dim objassoc
set objso = CreateObject("superofficedb.database")
If not (objSO is nothing)  then
    objso.login "<username>",  "<password>"
    set  objassoc = objso.getassociate  (12)
    msgbox objassoc.fullname
else
    msgbox "unable to connect to database"
end if
set objso = nothing

See Also