vbScript eval() With a Function or Sub

pulutnd

New Member
I am trying to accomplish the following:Let's say I have a function \[code\]myFunc(sStr)\[/code\] which returns a value. I want to dynamically call that function, which I believed I could do by using one of the build in vbScript Functions \[code\]eval()\[/code\] or \[code\]execute()\[/code\].\[code\]Function myFunc(fString) myFunc = "some text in a string. " & fStringEnd Function\[/code\]I want to call that via something like this:\[code\]sDoThis = "response.write myFunc(""blah blah. "")"execute(sDoThis)\[/code\]This doesn't seem to work (e.g. the part where I pass in the string to be executed).I need the string that is to be executed to be dynamic. Does anyone know if/how this is possible?
 
Back
Top