You can create a "header" module and declare the variable there. Export
the variable from the header module. Wherever you use the header module,
you can access the variable has <Header_Module_Name>::variable. This way
you can change the value of the variable in the header module and it
will change wherever it is accessed. Read up on creating modules.

HTH.
Sulabh


-----Original Message-----
From: Hamish Whittal [mailto:[EMAIL PROTECTED] 
Sent: Friday, June 06, 2003 8:48 AM
To: [EMAIL PROTECTED]
Subject: Best way of using a variable thoughout a number of modules...


Hi Everyone,

I am needing to use some variables throughout all the modules that I
have created. I was wondering, bar setting them at the top of each
module, what the best means of doing this is. Perhaps setting an
environment variable, but what other ideas. The ultimate goal is to be
able to change the value in the 'top-level' module and that should have
an impact throughout all subsequent modules.

Thanks
H


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to