ucEvaluate
ucEvaluateStr
See Also: ucParse
Rapidly evaluates an expression that was parsed with
ucParse.
ucEvaluate(ExpressionHandle)
-or-
ucEvaluateStr(ExpressionHandle)
Parameter
ExpressionHandle
Required. ExpressionHandle is a value returned
by ucParse, and represents the handle of the expression you want to evaluate.
Remarks
- ucEvaluate
(or ucEvaluateStr) is designed to be used in pair with ucParse, for faster
results than ucEval or ucEvalStr in time-critical loops.
- ucEvaluate
returns the numeric result of an expression of numeric type.
- ucEvaluateStr
returns a value as a string for an expression of any data type (including
any kind of string, number, or other type). Non-string values are converted to a string before being
returned.
See Example: Fast evaluation millions of times in a
loop
New or enhanced in version 2.96
- PowerBASIC
users will notice a marked difference in speed for ucEvaluate between
versions 2.95 and 2.96.