> Forgive me gentlemen, I am new to TCL (about 2 weeks) and even newer to
> Vtcl.
>
> I am using the latest version of Vtcl, but I cannot seem to figure out how
> to load my global variables via the interface. I have tried to manually
> enter them straight up top the source (under "next line starts wish" and
> this does work, unfortunatly when I continue to work on my new project via
> Vtcl and save it, it erases my globals and I have to re-add them manually.
>
> I am sure there is a simple way, I have spent alot of time trying to
> discover how.
Since vTcl wipes out anything that's not part of the project when it
saves out a project, you'll need to include your global variables in some
part of the project vtcl recognizes. This is exactly what the 'init' proc
is for. 0-] In the function editor, open the init proc and put your
variables in there. You'll need to global each variable before setting
it. Like so:
global foo
global bar
set foo 1
set bar 2
Then, when vTcl writes out the project, it will write your init
proc with it, and the init proc gets called at the very beginning of
any vTcl program. 0-] Hope that helps!
Damon
-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive? Does it
help you create better code? SHARE THE LOVE, and help us help
YOU! Click Here: http://sourceforge.net/donate/
_______________________________________________
vtcl-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/vtcl-user