Click or drag to resize

IPersonIsAvailable Property

is record available in db? Checks if the record is available in the database. It’s useful to check if a person actually exists before adding new properties to it

Namespace:  SuperOffice.COM.SuperOfficeDB
Assembly:  SuperOfficeDB.Interop (in SuperOfficeDB.Interop.dll) Version: 8.0.0.0
Syntax
bool IsAvailable { get; }

Property Value

Type: Boolean
Boolean – True if such a record exists

Implements

IModelBaseIsAvailable
Examples

IsAvailable

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

VB
Dim objSO
Dim objPerson
Set objSO = CreateObject("SuperOfficeDB.Database")
If not (objSO is nothing) Then
    objSO.Login "<USERID>", "<PASSWORD>"
    Set objPerson = objSO.GetPerson(2)       
    if objPerson.IsAvailable = true then
        MsgBox "Person with person_id=2 has the following firstname: " & objPerson.firstname
    else
        msgbox "There is no person in the database with person_id=2"
    end if
else
    MsgBox "Unable to connect to database"
end if
Set objSO = Nothing

See Also