nextToken() returns the next token from the string. The method does not require any arguments.
Syntax:
tok.nextToken()
Usage example:
MAIN
DEFINE tok BASE.StringTokenizer
LET tok = BASE.StringTokenizer.CREATE('C:\\\\My Documents\\My Pictures','\\')
WHILE tok.hasMoreTokens()
DISPLAY ". >", tok.nextToken(),"<"
END WHILE
END MAIN
In the example above, NULL tokens will be skipped.