I don't know if this is a problem with vtcl, or just ignorance of how
vtcl works on my part. I've made a little program that lets you ping,
telnet, or rlogin to other systems. When you press the appropriate
buttons, it checks a couple of if statement to determine your OS and
executes cmdtool, dtterm, etc.
My problem comes in here. After using the program for a while, I added
a menu so you can set your background and foreground colors of your
window. I'm having trouble figuring out how to set the variables to a
default value, if a user doesn't choose a color first. I tried putting
in some if statements when the buttons are pressed, but I always get an
error telling me that the variable isn't defined. I then used the
variable widget and added the two variables in, and everything worked
perfect. I saved it, only to find out that when I ran it, I got the
same error about the variable not being defined. I loaded the program
back into vtcl, and the variable were not defined again.
Can anyone help me set a default value for a variable?
Ed
--
--------------------------------------------------------------------------------
|
Ed Coates | Jesus Saves... Passes to Moses
[EMAIL PROTECTED] | He shoots! He scores!
|
--------------------------------------------------------------------------------
---------------------------------------------------------------------------
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).