To properly explain my problem, maybe I should describe what kind of
program I am creating...
I am having difficulties in trying to get the most current value from
a variable, which refers to another variable, like so...
set dialogue(SE,1,default) "Default"
set dialogue(SE,1,value) "$dialogue(SE,1,default)"
set dialogue(SE,1,parm) {-I$dialogue(SE,1,value)}
SE,1,value is used as an entry widget's text variable, so for example,
if the user modified the contents to be "Standard", the desired output
would be:
-IStandard
The reason of having the default section at all, is so I have the
means to reset the values when required to nominal defaults.
The problem is that when processed (for testing purposes, using puts
stdout), the following occurs...
-I$dialogue(SE,1,value)
In other words, exactly as what is kept in the braces. How can I force
the command to work as I want? I have kind of got round it by using
the following...
set dialogue(SE,1,parm) {set tmp "-I$dialogue(SE,1,value)"}
With this inelegent solution, the set value merely returns the correct
value at the time $dialogue(SE,1,parm) is called.
Is there a better solution?
Any help provided in this matter would be gratefully appreciated.
Access to this group is not reliable for me, so E-Mail straight to me
as well as this group would be a big help. Thanks!
Be seeing you...
Raymond Chitolie.
=-=-=-=-=-=- Games + Sounds + Homer + Serial Killers -=-=-=-=-=-=
zca...@cs.ucl.ac.uk || "I'm going to escape and come back...
"Be Seeing You" || wipe this place off the face of the
---------------------|| earth, obliterate it...and you with it."
B5 XF ST XM LNC JD F || No. 6
=-=-=-=-=-= http://www.cs.ucl.ac.uk/students/zcacchi/ =-=-=-=-=-=
Note that the 'set' command can be used to return the value of a
variable. With this in mind, you can do this:
set dialogue(SE,1,parm) "-I[set dialogue(SE,1,value)]
This should provide what you want.
--
Larry V. Streepy, Jr.
V.P. of Technology, Healthcare Communications, Inc.
str...@healthcare.com
(214) 851-7035