Counting the lines in a listbox (listbox_count_*)ΒΆ

listbox_count_all()

Count the lines in a listbox

listbox_count_selected()

Count the selected lines in a listbox


SYNTAX

listbox_count_all (listbox_id)

listbox_count_selected (listbox_id)

Count the lines in a listbox.

listbox_count_all() returns the number of lines.

listbox_count_selected() returns the number of selected lines Note that only LIST_BOX type listboxes support multiple line selection. For other listbox types, listbox_count_selected() can only ever return 0 or 1.


EXAMPLE

MaxLine = listbox_count_all(NamesListBox)

RELATED TOPICS

Listboxes

Listbox and table functions

Listbox types