NOP Design Home Page
Documentation
TOC/Index
Search
Downloads



NumberOfItems

Returns the count of the number of items in a SIML array or list

Sample Source

CreateList MyList
InsertBefore 1 To MyList
InsertAfter "Item Two" To MyList
SelectItem First of MyList
Say "There are " + (NumberOfItems MyList) + " items in the list\n"
While AtEndOfList MyList <> True
   Say CurrentItem Of MyList
   SelectItem Next From MyList
Loop

Related Function(s):
   AtEndOfList; CreateList; InsertAfter; InsertBefore; RemoveItem; SelectItem;

Minimum version: 4.4