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
SyntaxSOAssociate GetAssociate(
int AssociateId
)
Function GetAssociate (
AssociateId As Integer
) As SOAssociate
Dim instance As IDatabase
Dim AssociateId As Integer
Dim returnValue As SOAssociate
returnValue = instance.GetAssociate(AssociateId)
SOAssociate^ GetAssociate(
[InAttribute] int AssociateId
)
Parameters
- AssociateId
- Type: SystemInt32
the numeric database identifier
Return Value
Type:
SOAssociateSOAssociate – the specific associate record
ExamplesRetrieve 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.
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