2.171 .itemcount
This attribute specifies the number of items in a listbox or poptext. It can be set as well as read in the rules.
Definition
-
Data type
integer
-
Access
get, set
-
changed event
yes
The number of texts to be displayed in the listbox can be specified with .itemcount. In order to be more efficient, the DM allows the itemcount to be set at a higher value than the number of texts already existing in the listbox. The new texts can be set afterwards. If a listbox is to be filled with several texts by the Rule Language or by DM_SetValue, .itemcount should first be set at the expected value, then the contents can be specified.
In a poptext, however, the attribute .itemcount can only be set at a lower value than, or equal to, the current number of texts in the poptext. By setting this attribute, only a reduction in the number of texts in the poptext can be achieved.