Click or drag to resize

IUDefFieldsCount Property

The number of user defined fields on this type of object. A User-defined field - contains layout and database storage information, as well as value of field. How many UdefField are in the collection

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

Property Value

Type: Int32
Long – number of fields
Examples

Count

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

Returns first a count of user defined fields that is published on the contact panel.

VB
Dim objDB
Dim udef
Dim udefs
Dim item
Set objDB = CreateObject("SuperOfficeDB.Database")
If Not (objDB is Nothing) Then
    objDB.Login "<userID>", "<password>"
    set cont = objDB.GetContact(1)
    set udefs = cont.udef
    item = "Number of userdefined fields defined on contact panel: " & udefs.count & vbCrLf
    msgbox item
else
    MsgBox "Unable to connect to database"
end if

See Also