TOKENNUM()
Get the total number of tokens in a token environment
- Syntax
-
- TOKENNUM ([<@cTokenEnvironment>]) -> nNumberofTokens
- Arguments
-
- <@cTokenEnvironment> a token environment
- Returns
-
- <nNumberofTokens> number of tokens in the token environment
- Description
-
- The TOKENNUM() function can be used to retrieve the total number of tokens in a token environment. If the parameter <@cTokenEnvironment> is supplied (must be by reference), the information from this token environment is used, otherwise the global TE is used.
Examples
tokeninit ("a.b.c.d", ".", 1) // initialize global TE
? tokennum() // --> 4
- Status
- Ready
- Compliance
-
- TOKENNUM() is a new function in Harbour's CTIII library.
- Platforms
-
- All
- Files
-
- Source is token2.c, library is libct.
- See Also