BINDEXPRESSION(declare runtime expression)

Top  Previous  Next


BINDEXPRESSION( | name,expression | )


Identifies variables allowed to be used in dynamic expressions.


A string constant containing the identifier used in the dynamic expression.


A mathematical formula containing any valid combination of variables, functions, operators, and constants.

The BINDEXPRESSION statement declares the logical name used to identify an expression used in runtime expression strings.

The EVALUATE statement must parse an expression every time it is called. If some expression is evaluated frequently, this can be time consuming.

BINDEXPRESSION parses the expression only once and is saved in a pre-compiled form under the given name. Later, this expression can be used in EVALUATE as a stand alone, or as a part of another expression in EVALUATE, or in another BINDEXPRESSION.


 BIND('Var', Var)

BINDEXPRESSION('Power2', 'Var * Var')


 Var = 10

 P2  = EVALUATE ('Power2')


BINDEXPRESSION ('Circle', '3.14159 * Power2')


 MESSAGE('color:red = ' & color:red & '|Eval(color:red)=' &|

 EVALUATE('color:red') )        !Shows same number twice





See Also:

BIND (declare runtime expression string variable)

EVALUATE (return runtime expression string result)