In short idea is following:
Code: Select all
for n = 0 to listitems(table)-1
do stuff with table[n] item
next
I am now wondering best way to avoid this issue, so far i have thought of two possibilities:
Code: Select all
if listitems(table) <> 0
for n = 0 to...
endif
Code: Select all
n = 0 to...
if n<>-1
do stuff
endif