Evaluate as Variable, not String?

D

Dave B.

Hey gang, I am probably missing something basic.

I have a bunch of arrays in one of my ASP scripts, and I need to construct
the reference to the variable through some string contatenations.

Example:

- one of my variables is 'strQ1a(13)' and earlier in the script I assign a
value to it.
- I construct the name of this variable through code like
response.write="str" & myQuestionNumber & "(" & myrs.fields("value") & ")"
- VBScript just evaluates this as a string and rather than displaying the
VALUE of variable strQ1a(13), it justs displays "strQ1a(13)"

How can I get it to look at this as a variable and get the value?
 
D

Dave B.

Curt:

Oh boy, how simple. I looked at that function and the description on the
site made it seem like that wasn't the one. Should have tried it anyway.

Thanks!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,483
Members
44,902
Latest member
Elena68X5

Latest Threads

Top