Click or drag to resize

IProjectUDef Property

User defined fields object A collection of the Projects 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 project panel, not if there are any values inside the projects user defined fields.

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

See Also