Hi,
I wanna use .button instate pressed. But there are errors.
Here is my code:
proc displayAmtFn {} {
if {.f.b1 instate pressed == 1} {
set ::finalamt 1}
elseif {.f.b2 instate pressed == 1} {
set ::finalamt 2}
set ::finalamt ""
}
b1 and b2 are my buttons. is my syntax wrong?
my errors: invalid character "."
in expression ".f.b1 instate pressed =..."
invalid character "."
in expression ".f.b1 instate pressed =..."
(parsing expression ".f.b1 instate pressed ...")
I wanna use .button instate pressed. But there are errors.
Here is my code:
proc displayAmtFn {} {
if {.f.b1 instate pressed == 1} {
set ::finalamt 1}
elseif {.f.b2 instate pressed == 1} {
set ::finalamt 2}
set ::finalamt ""
}
b1 and b2 are my buttons. is my syntax wrong?
my errors: invalid character "."
in expression ".f.b1 instate pressed =..."
invalid character "."
in expression ".f.b1 instate pressed =..."
(parsing expression ".f.b1 instate pressed ...")