Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

variable referencing

Status
Not open for further replies.

funkydonkey2000

Programmer
May 29, 2003
12
AU
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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top