Hi again,

I found out today that when you create a variable as global, it is
initialized when the script is saved. I would expect it to be declared
as global but not initialized. I would expect control for the
initialization of the global variables to be done in the init procedure.
My global variables are initialized with the result of executing a
command. Furthermore, some of those initializations require a specific
global variable to be initialized beforehand. Since the variables are
saved in alphabetical order, it causes problems because the most
important variable is not save first.

I've also found that the global variables are initilized to a real
value, not a result. So even if I manually modify the generated script
to get:

global foo; set foo [bar]

when I load and save with vtcl, the result is

global foo; set foo {foobar}

where {foobar} is whatever value was originally returned by bar.

Any thoughts on how to deal with this?

Thanks!

-- 
Laurent Duperval, Systems Analyst       Grafnetix Systems Inc.
Tel: (514) 861-3389                     777, de la Commune Ouest
Fax: (514) 866-6206                     Suite 101, Montreal, Qc
[EMAIL PROTECTED]                   Canada, H3C 1Y1
URL:            http://www.Grafnetix.COM/
Personal URL:   http://www.Grafnetix.COM/~laurent/

Reply via email to