Click or drag to resize

IContactIsRequiredFilled Property

Are all the required fields filled out? Can we save the record? Checks if all properties that are required in this model is filled

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

Property Value

Type: Boolean
Boolean – true if all required fields are filled

Implements

IModelBaseIsRequiredFilled
Examples

IsRequiredFilled

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

VB
Dim objSO

Set objSO = CreateObject("SuperOfficeDB.Database")
If not (objSO is nothing) Then
    objSO.Login "<USERID>", "<PASSWORD>" 
    set cont = objSO.GetContact(1)
    msg = "name= " & cont.Name & chr(10)
    msg = msg & "IsAvailable = " & cont.IsAvailable & chr(10)
    msg = msg & "IsValid = " & cont.IsValid & chr(10)
    msg = msg & "RequiredFilled = " & cont.IsRequiredFilled 
    MsgBox msg, 0, "Contact 1"

    'most likely, this contact will not be a contact in your database
    set cont = objSO.GetContact(12345678)
    msg = "name= " & cont.Name & chr(10)
    msg = msg & "IsAvailable = " & cont.IsAvailable & chr(10)
    msg = msg & "IsValid = " & cont.IsValid & chr(10)
    msg = msg & "RequiredFilled = " & cont.IsRequiredFilled 
    MsgBox msg, 0, "Contact 12345678"
else
    MsgBox "Unable to connect to database"
end if
Set objSO = Nothing

See Also