Equinox Online Help - Language Reference - A to Z

Home

ListCount

Applies to
SyntaxListCount (ListItem)
Action[Function] Returns the number of items listed in a combo field.
ScopeOnly usable in form methods.
Notes

This function is used to determine the number of items listed in the combo field specified by the parameter ListItem. If ListItem is not a listable type SysError is set to one.

The system workarea SysError is set to a non-zero value if an error occurs, otherwise zero.

CategoryCombo lists
See Also ListAppend, ListDelete, ListDeleteString, ListEmpty, ListFind, ListInsert, ListRead, ListReset, ListSpace
Example

This example protects the County field if it contains no values within its list.

if ListCount(County) = 0 then County.Protection = true