Expression.GetToken

Syntax

Expression.GetToken( tokenIndex, tokenCode, charIndex, numChars, tokenText)

Purpose

This method returns information about the token you specify by index. You must call the Expression.Tokenize method before you call this method for the first time and before you call this method after changing the value the Expression.Text property.

Parameters

tokenIndex As Long

[In] Specifies the zero-based index of a token in the expression.

tokenCode As TokenCode

[Out] Returns a code that specifies which expression element the token represents.

charIndex As Long

[Out] Returns the zero-based index within the expression string of the first character in the token.

numChars As Long

[Out] Returns the number of characters in the token.

tokenText As String

[Out] Returns the characters in the token.

See Also

Expression.NumTokens

Expression.Text

Expression.Tokenize

TokenCode