Equinox Online Help - Language Reference - A to Z
ListCount |
|
|---|---|
| Applies to | ![]() |
| Syntax | ListCount (ListItem) |
| Action | [Function] Returns the number of items listed in a combo field. |
| Scope | Only 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. |
| Category | Combo 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 |
