Obtaining the value of a variable defined by a string

Discussion in 'AutoCAD' started by Marcel Janmaat, Jan 27, 2005.

  1. I have a list like this;

    (("H_cadsvl" "value" "discription") ("H_cadnet" "value" "discription"))

    Each first item in this list represents a variable name. I can set each
    variable like this (set (read variable) "value") but how can I obtain the
    value of (read variable") ?

    M
     
    Marcel Janmaat, Jan 27, 2005
    #1
  2. Marcel Janmaat

    Jürg Menzi Guest

    Hi Marcel

    (eval (read "VariableName"))

    Cheers
     
    Jürg Menzi, Jan 27, 2005
    #2
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 (here). After that, you can post your question and our members will help you out.