funkydonkey2000
Programmer
I was just wondering if it is possible to evaluate a string into a object/variable name such as in javascript and flash actionscript with eval().
etc in actionscript:
var objectname = "car";
// the next line will call the car's method "speed()";
// same as writing "car.speed()";
eval(objectname).speed();
Asp do has a eval() function but it doesn't seem to do that. Just wondering if anybody knows a way of doing this in asp?
Thanks
etc in actionscript:
var objectname = "car";
// the next line will call the car's method "speed()";
// same as writing "car.speed()";
eval(objectname).speed();
Asp do has a eval() function but it doesn't seem to do that. Just wondering if anybody knows a way of doing this in asp?
Thanks