Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old July 19th, 2005, 03:31 PM
Jochen Scheire
Guest
 
Posts: n/a
Default compose variables

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?

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
  #2  
Old July 19th, 2005, 03:31 PM
Ray Costanzo [MVP]
Guest
 
Posts: n/a
Default Re: compose variables

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



"Jochen Scheire" <jochen.scheire@metamedia.be> wrote in message
news:%23gbXDaPsEHA.3336@tk2msftngp13.phx.gbl...[color=blue]
> 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?
>
> *** Sent via Developersdex http://www.developersdex.com ***
> Don't just participate in USENET...get rewarded for it![/color]


 

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles