On Wed, 12 Jan 2000, Otto Stolzenberger wrote:
> How can I set global variables in Visual TCL? Thanks.
You just delcare them global in the procs that need to access them. You do
not have to declare them anywhere outside of these procs.
proc DoIt {args} {
global goodstuff widget
puts "global stuff=$goodstuff(junk)"
Window show $widget(GetUserId)
...etc...
}
This is how you use the vTcl global "widget" array that contains widget
aliases (as shown in the tutorial).
...RickM...
---------------------------------------------------------------------------
To unsubscribe from the Visual Tcl mailing list, please send a message
to [EMAIL PROTECTED] with "unsubscribe vtcl [EMAIL PROTECTED]" in the
message body (where [EMAIL PROTECTED] is your e-mail address).