RETURNS THE NUMBER OF ITEMS OF THE SYSTEM OBJECT NUMBER N
ACTION
The function COUNT(N) returns the number of lines (items) of the system object designated by its number N.
The system object is of type : MEMO, COMBO, LIST, MEMO_RICH, DLIST, SERIAL, SYNEDIT.
Remark: the first line has the number 1.
SYNTAX:
Result=COUNT(N)
USE ERROR EXAMPLE
rem create a LIST
list 1
rem fill the LIST with 2 lines
item_add 1,"This is line 1"
item_add 1,"This is line 2"
print
print
print
print
print
print
rem print the number of items
print "Nbre of lines="+str$(count(1))
COUNT()
COUNT(N)
SEE ALSO
MEMO
COMBO
LIST
MEMO_RICH
DLIST
SERIAL
SYNEDIT
FILE_ADD
ITEM_ADD
ITEM_INSERT
ITEM_DELETE
ITEM_READ$()