compose variables

J

Jochen Scheire

Hello,

I have a list with a lot of variables. The variables all start with
Langstring, followed by a number.

Langstring1 = "text1"
Langstring2 = "text2"...

I have a database with only numbers in it. Now I want to use these
variables in a dropdown box as selected item. Is it possible to compose
variables out of two parts?

I tried response.write(Taalstr&RSItems("Testfield"))

It gave me Langstring1 because the number in the field was one. I want
it to return 'text1'. Is it possible?
 
R

Ray Costanzo [MVP]

Well, while it is possible if you use something like the Eval function, but
I personally incredibly rarely ever find this to be a good idea. Have you
considered using an array perhaps?

Ray at work
 

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

Forum statistics

Threads
473,774
Messages
2,569,599
Members
45,175
Latest member
Vinay Kumar_ Nevatia
Top