Expression.NumTokens

Syntax

Expression.NumTokens

Data Type

Long

Purpose

Returns the number of tokens the expression contains. A token is a set of contiguous characters in the expression text that represent an identifier, operator, or constant. A token does not include surrounding white space characters.

Note You must call the Expression.Tokenize method before you access this property for the first time and after changing the value of the Expression.Text property.

See Also

Expression.GetToken

Expression.Text

Expression.Tokenize