IDatabaseGetPerson Method |
Get a Person object by person_id. Returns an error if the person is hidden by sentry rules.
Namespace:
SuperOffice.COM.SuperOfficeDB
Assembly:
SuperOfficeDB.Interop (in SuperOfficeDB.Interop.dll) Version: 8.0.0.0
SyntaxSOPerson GetPerson(
int PersonId
)
Function GetPerson (
PersonId As Integer
) As SOPerson
Dim instance As IDatabase
Dim PersonId As Integer
Dim returnValue As SOPerson
returnValue = instance.GetPerson(PersonId)
SOPerson^ GetPerson(
[InAttribute] int PersonId
)
Parameters
- PersonId
- Type: SystemInt32
the person’s identifier
Return Value
Type:
SOPersonSOPerson – the person with the given ID
ExamplesGet the person with ID = 3
This text may be copied to the notepad, and saved as a *.vbs file. Remember to change the login information.
dim objso
dim objperson
set objso = CreateObject("superofficedb.database")
If not (objSO is nothing) then
objso.login "<userid>", "<password>"
set objperson = objso.getperson(3)
msgbox "contact person firstname = " & objperson.firstname
else
msgbox "unable to connect to database"
end if
set objso = nothing
See Also