Happy New Year!
When last we spoke, I’d given you some code that doesn’t work quite right:
Const pi = 3.1416
WScript.Echo Main()
Function Main()
Const r = 2.5
Dim result
Dim str
str = “result=pi*(r*r)”
ExecuteGlobal str
Main = result
End Function
Did you see why? ExecuteGlobal is executing the contents of variable str in the global scope. However, …