Results 1 to 2 of 2

Thread: evaluate a string expression?

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Dec 2002
    Location
    southwest pennsylvania
    Posts
    65

    evaluate a string expression?

    what i'm looking for is something that works like the javascript eval(string) function...

    eval(string) takes the string and evaluates it.
    example:
    var varName = prompt("enter the variable's name that you want to alter.")
    var varValue=prompt("enter a value for " + varName)
    eval(varName+"=varValue")
    if you choose not to decide you still have made a choice!

    RUSH rocks!

  2. #2

    Thread Starter
    Lively Member
    Join Date
    Dec 2002
    Location
    southwest pennsylvania
    Posts
    65
    is 'variables' a keyword? i think i figured a workaround.

    dim variables as new arrayList()
    ...
    ...
    variables(varName)=varValue

    hows that?
    if you choose not to decide you still have made a choice!

    RUSH rocks!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width