SEVAL() Function - Evaluate String Expression
Syntax
SEVAL(str{,ERR=lineref})
For BBj-specific information, see the SEVAL() Function - BBj.
Description
The SEVAL() function is intended to replace the use of EXECUTE for evaluating string expressions in public programs. SEVAL() returns the value from the string expression in str after compiling and executing the str. Error branches in str are not taken in the event of an error while evaluating the expression.
Examples
>A$="1234"
>PRINT SEVAL("A$(1,2)")
12
>B$="HTA(A$(1,2))"
>PRINT SEVAL(B$)
3132