I am trying to learn a bit more of HTA and VBScript and I want to know if VBS allows to create dynamically functions as in JavaScript as:

var f = new Function('functionName', functionbody);

or

window['functionName'] = function() { functionbody };

Into the HTA, there is a <textarea> in witch the user writes its code as a string and I want to dynamically transform it into a VBScript function at runtime.

In other words, is there an equivalent of the new Function() constructor in HTA/VBScript that is available in JavaScript and of course without mixing JavaScript code with VBScript code into the same HTA file?

0

There are 0 best solutions below