TS> How can you make a variable global in a script, so that every proc can
TS> see that variable? This is what I have...
TS> global Title
TS> proc proc1 {} {
TS> set Title bob
TS> }
it has to be the other way around. put global in the procedure. each
procedure has access to all global variables... it just has to ask
nicely.
--
Hume Smith hcls...@ra.isisnet.com
Waiting for a GNU version of JW's A! code. I have too much hacker ethic.
"What are you doing?" "I'm spelunking."
"There's a medicine you can take for that." Buster & Babs
global Title
proc proc1 {} {
set Title bob
}
I get a Title undefined error when I try and run the script? Any
suggestions?
Thanks,
Troy
In Tcl you need to define global variables in the procedures that
access them, global declarations at the global level are tautologies.
--
Michael Salmon
#include <standard.disclaimer>
#include <witty.saying>
#include <fancy.pseudo.graphics>
Ericsson Telecom AB
Stockholm