Previous Topic: SetTokenizerInputNext Topic: User-defined Functions


GetToken

The GetToken function retrieves the next string token from the current input string set by SetTokenizerInput.

Function format:

GetToken(token as string)as boolean

Example:

SetTokenizerInput("This is a test program", " ")
while GetToken(token)
   print token
wend

Input Parameters

This function has the following input parameters:

token

Specifies a string variable that holds the next token returned by the function.

Return Values

Returns True if it returned the next string token. It returns False if no more tokens are available to retrieve from the current input string.

Output

This is a test program.