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
SyntaxReadOnly Property IsValid As Boolean
Get
Dim instance As IPerson
Dim value As Boolean
value = instance.IsValid
property bool IsValid {
bool get ();
}
Property Value
Type:
BooleanBoolean – true if such a record exists in buffer
Implements
IModelBaseIsValid
ExamplesIsValid
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 "rp", ""
Set objPerson = objSO.GetPerson (2)
MsgBox "Person with person_id=2: " & objPerson.FirstName
else
MsgBox "Unable to connect to database"
end if
Set objSO = Nothing
See Also