[Tutor] global
Kirk Bailey
idiot1@netzero.net
Thu Jul 31 21:48:02 2003
Got a script that wants to bark. Early in the program I define some
defaults for certain variables to define state (they are used as boolian
flags, 1/0 stuff). Later, a function referrs o one- and barks. Says it
does not know the variable- undefined. Hmmm, sure it is... Apparently
this function is not aware the variable is already defined. How do I
force a variable to be global so it will automatically be available to
the insiode structure of a defined function without having to formally
pass it as an arguement?
--
--
end
Cheers!
Kirk D Bailey
+ think +
http://www.howlermonkey.net +-----+ http://www.tinylist.org
http://www.listville.net | BOX | http://www.sacredelectron.org
Thou art free"-ERIS +-----+ 'Got a light?'-Promethieus
+ think +
Fnord.