IllegalOperation38
Technical User
As I am trying to learn TCL/TK, I have found VTCL seems to be the most up to date GUI of the few I have played with so far, except it comes with zero documentation. (SpecTcl seems primitive?)
I cannot seem for the world of me how to set a variable for my program outside of a procedure. I want to set a variable and refer to it many times via the global scope with the rest of my procs. If I try to edit my source code directly and add the variable, the program wont run. (Example
#!/bin/sh
#The next line starts wish
exec wish "$0" "$@"
set vsftpd "/etc/rc.d/init.d/vsftpd
This will not work.
VTCL offers 2 procedures already, an init and a main. Can anyone kindly tell me how I can add my variable from within VTCL so that I may call it from a global scope (without putting it inside of a procedure itself?
I cannot seem for the world of me how to set a variable for my program outside of a procedure. I want to set a variable and refer to it many times via the global scope with the rest of my procs. If I try to edit my source code directly and add the variable, the program wont run. (Example
#!/bin/sh
#The next line starts wish
exec wish "$0" "$@"
set vsftpd "/etc/rc.d/init.d/vsftpd
This will not work.
VTCL offers 2 procedures already, an init and a main. Can anyone kindly tell me how I can add my variable from within VTCL so that I may call it from a global scope (without putting it inside of a procedure itself?