Function NumToken() Foundation

Counts tokens in a string.

Syntax
NumToken( <cString>     , ;
          [<cDelimiter>], ;
          [<nSkipStep>]   ;  // Default: 0
        ) --> nCount
Return

Returns the number of tokens found in a string.

Description

<cDelimiter> is a string containing token delimiters. It defaults to a string containing the following characters:

CHR() - 0, 9, 10, 13, 26, 32, 138, 141 
plus  - ,.;:!?/\<>()#&%+-* 

All parts of a string which are separated by a character contained in <cDelimiter> are recognized as token.

The parameter <nSkipStep> defaults to 0. If it is specified it determines the number of characters a token will be counted even if the token is empty.

Feedback

If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.