How do I correctly access this variable?

Liste des GroupesRevenir à cl tcl 
Sujet : How do I correctly access this variable?
De : luc (at) *nospam* sep.invalid (Luc)
Groupes : comp.lang.tcl
Date : 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
>


Date Sujet#  Auteur
4 Oct 24 * How do I correctly access this variable?4Luc
4 Oct 24 `* Re: How do I correctly access this variable?3Colin Macleod
4 Oct 24  `* Re: How do I correctly access this variable?2Ralf Fassel
4 Oct 24   `- Re: How do I correctly access this variable?1et99

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal