Sujet : How do I correctly access this variable?
De : luc (at) *nospam* sep.invalid (Luc)
Groupes : comp.lang.tclDate : 04. Oct 2024, 07:36:48
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <20241004033648.47f809d1@lud1.home>
I am stumped by this:
array set CONTROL {
InitialStartUpDir "$env(HOME)"
}
puts $env(HOME)
/home/luc
OK.
Now,
oo::define NewTab {
constructor {} {
blah blah blah...
$newtab configure -text "$::CONTROL(InitialStartUpDir)"
}
}
The button label becomes "$env(HOME)" instead of /home/luc.
What am I doing wrong?
-- Luc>