I cannot figure this one out so I thought I would post a challenge.
I have several lists created in a routine:
(setq layers-PLAN (list .....))
(setq layers-RCPL (list .....))
(setq layers-ELEV (list ...))
(setq layers-SECT (list ...))
I am trying to return these lists when a user clicks a radio button with key values as follows: (setq user_input $key)
PLAN
RCPL
ELEV
SECT
I know how to use the set command to SET an expression to a symbol.
(set (read (strcat "layers-" $key)) (list ....))
What I do not know is how to return a value by building a symbol from user input.
(setq user_input_layers (read (strcat "layers-" $key))) returns LAYERS-PLAN and not the predefined list.
Any help would be appreciated. If you help out, I'll put in a good word to Santa.