xHarbour Reference Documentation > Function Reference xHarbour Developers Network  

TokenNum()

Returns the number of tokens in a tokenizer environment.

Syntax

Tokennum( [<@cTokenEnv>] ) --> nTokenCount

Arguments

@<cTokenEnv>
Optionally, a character string holding a local tokenizer environment can be passed. It is obtained via the fourth parameter of TokenInit(). <cTokenEnv> must be passed by reference. If <cTokenEnv> is omitted, the function uses the global tokenizer environment.

Return

The function returns the total number of tokens of the specified tokenizer environment as a numeric value. The tokenizer environment must be initialized with TokenInit().

Info

See also:TokenEnd(), TokenInit(), TokenNext()
Category: CT:String manipulation , Character functions , Token functions , xHarbour extensions
Source:ct\token2.c
LIB:xhb.lib
DLL:xhbdll.dll


Copyright © 2006-2007 xHarbour.com Inc. All rights reserved.
http://www.xHarbour.com
Created by docmaker.exe