Click or drag to resize

IPersonUDef Property

User-defined fields object A collection of the Persons user defined fields

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

Property Value

Type: SOUDefFields
SOUdefFields – collection of SOUdefField object
Examples

Udef

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

This checks if there are user defined fields set up on the person panel, not if there are any values inside the current persons user defined fields.

VB
Dim objSO
Set objSO = CreateObject("SuperOffice.Application")
If not (objSO is nothing) Then
    if objSO.CurrentPerson.Udef.Count > 0 then
        MsgBox "The person panel has user defined fields", vbInformation + vbOKOnly, "SuperCOM"
    else
        MsgBox "No user defined fields defined on the person panel."
    end if
else
    MsgBox "Unable to connect to database"
end if
Set objSO = Nothing

See Also