Function Token() Foundation

Retrieves the n-th token from a string.

Syntax
Token( <cString>      , ;
       [<cDelimiter>] , ;
       [<nWhichToken>], ;
       [<nSkipStep>]    ;  // Default: 0
     ) --> cToken
Return

Returns the <nWhichToken>th token from a string.

Description

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

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

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

The parameter <nWhichToken> defaults to the last token in <cString>.

<nSkipStep> defines after how many characters Token() returns even if a 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.