On Thu, 22 Jan 1998, Jeffrey Barneveld wrote:
> I'm using entries and labels, but it doesn't work the way I want to.
> I use the 'Variables'-window for my global variables. Then, in a
> toplevel window, I put an entry and fill in a variable-name.
> Same thing with the label.
>
> When I run the generated tcl-program, I can fill in the entry-box.
> When writing this entry to stdout, I get what I filled in; so far
> so good.
> But when I want to assign the value of this variable to the other
> from the label, the new value for the lable is not shown.
Where do you do the assignment of the entry variable to the label
variable? If it's in a procedure, you need to have a global statement in
the procedure to make them both global.
The variables window, as far as I could ever tell, doesn't do anything for
you. I always recommend to ignore it, and set the preference for "Save
Global Variable Values" off, which is the default.
...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).