Syntax |
ItemCount(text$ [,delimiters$]) |
Description |
Returns an Integer containing the number of items in the specified delimited text. |
Comments |
Items are substrings of a delimited text string. Items, by default, are separated by commas and/or end-of-lines. This can be changed by specifying different delimiters in the delimiters$ parameter. For example, to parse items using a backslash: n = ItemCount(text$,"\") |
Example |
This example creates two delimited lists and then counts the number of items in each. The counts are displayed in a dialog box. Const crlf = Chr$(13) + Chr$(10) Sub Main() l1% = ItemCount(ilist$) |
See Also |
Item$ (function); Line$ (function); LineCount (function); Word$ (function); WordCount (function). |
I |