Guest_imported
New member
- Jan 1, 1970
- 0
I know this has been answered before but, what I'm trying to do is a little funny (well to me the newbie tcl coder!).
This is what I've got:
set loc d:/
button .framemid.ok -text OK -command { .framelower.result config -text [.framemid.location get]
set output [open hds w]
puts $output $loc
close $output}
When I run this I get the error:
can't read "output" no such variable
Any ideas what I'm doing wrong?
Thanks
This is what I've got:
set loc d:/
button .framemid.ok -text OK -command { .framelower.result config -text [.framemid.location get]
set output [open hds w]
puts $output $loc
close $output}
When I run this I get the error:
can't read "output" no such variable
Any ideas what I'm doing wrong?
Thanks