Execute executes an expression or file as if it were code substituted in the program. The required parameter, string, can be either a string expression or the name of a file containing statements that is executed. If multiple statements are to be executed, separate them with a carriage return (vbCRLF). The code can access and modify all variables in the current running program.
Rem Execute execute a string as a SUB Dim x x = 5 Execute("PRINT x * 10") Execute("x = x * 10") Print x
// Eval execute a string as a SUB var x; x = 5; eval("NSB.PRINT(x * 10)"); eval("x = x * 10"); NSB.Print(x);