Click or drag to resize

IContactIsValid Property

does the record exist? To save time, we don’t load a record into buffer before one of its properties is asked for. This checks if the requested record is available in buffer

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

Property Value

Type: Boolean
Boolean – true if such a record exists in buffer

Implements

IModelBaseIsValid
Examples

IsValid

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(2)
    'Remove the ' to load the contact to buffer, and this objContact will be valid. 
    'test = objContact.name         
    if objContact.Isvalid = true then
        MsgBox "Contact with contact_id=2: " & objContact.Name
    else
        msgbox "There is no contact in the buffer with contact_id=2"
    end if
else
    MsgBox "Unable to connect to database"
end if
Set objSO = Nothing

See Also