ItemCount

Returns the number of items in a list.

Syntax:

ItemCount (list, delimiter)

Parameters:

(s) list a string containing a list of items.

(s) delimiter a character to act as a delimiter between items in the list.

Returns:

(i) the number of items in the list.

 

Note: leading and trailing delimiters are significant. This means that the comma-delimited list "a,b,c," has 4 items in it.

A single item null list ("") is not a valid list.

Example:


a = FileItemize("*.*")
n = ItemCount(a, @TAB)
Message("Note", "There are %n% files")
See Also:

ItemCountCsv, ItemExtract, ItemExtractCsv, ItemInsert, ItemLocate, ItemLocateWild, ItemRemove, ItemReplace, ItemSort, Lists Explained