I have many constant variables for example:
Const Total_US_Price = “100”
However, in my code, I am pulling a string “Total_US_Price”. I want to replace my string with the value of the Const variable.
How do I do that? How do I change “Total_US_Price” to return “100” (both being strings)?
It sounds like you want to use the eval() function…
http://www.devguru.com/technologies/vbscript/QuickRef/eval.html
EDIT: I hope you’re not pulling these strings from the client side (query string, POSTed form values, or cookies) or else you are opening yourself up for a world of hurt. Someone could inject whatever strings they wanted and it will get executed on your web server.