compose variables

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Jochen Scheire

    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!
  • Ray Costanzo [MVP]

    #2
    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:%23gbXDaPs EHA.3336@tk2msf tngp13.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]


    Comment

    Working...