Eval returns a value created by executing an expression as if it were a Function procedure. The required parameter, string, is a string expression that is executed. If multiple statements are to be executed, separate them with a carriage return (vbCRLF). The temporary, virtual procedure that gets created has all program variables passed in by value, so the variables are unmodifiable by the Eval function.
Rem Eval Example 'Eval execute a string as a Function Dim x x = 5 Print Eval("x") Eval("x = x * 10") Print x
// Eval Example /* Eval execute a string as a Function */ var x; x = 5; NSB.Print(eval("x")); eval("x = x * 10"); NSB.Print(x);