On Fri, 10 Apr 1998, Laurent Duperval wrote:

> Is it at all possible to keep vtcl from deleting variables which are not used
> by widgets but which need to be declared global? For example, a variable that
> is set in init and shared between two procs.

I've never had a problem with this; I do it all the time. You just declare
the variables as global in eery proc that needs to use them.

> Is it possible to declare functions before init? My init proc depends on
> another function. Of course, it doesn't work after I export my interface and
> try to reload it... Unless the only way around this is to declare my proc in a
> different file and source it? Hmmm...

vTcl supplies two procs, init and main. "main" is the last to execute so
you should be able to move what you have in init to main.

...RickM...

---------------------------------------------------------------------------
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).

Reply via email to