Global variables within a project that uses units from other projects
I have still one more question, hoping that anyone can help me with this.
* I have a Project#1 continaing Unit#1.
* I declare a global variable there - Dim GlobalVar.
* Then I use another unit that belongs to antoher project, maybe Unit#2 of Project#2.
My assumption has been that I can use the global varaible declared in Unit#1 also in Unit#2. However it seems that is not know there. So, I am looking for a way to create somewhat like a SUPER_GLOBAL_VARIABLE.
Does anyone know if it is possible and how to tget it done?
Re: Global variables within a project that uses units from other projects
If the solution suggested by Simon doesn't meet your needs, you need to add Unit#1 to Project#2 and add the line
</font><blockquote><font size="1" face="Verdana, Arial, Helvetica">code:</font><hr /><pre style="font-size:x-small; font-family: monospace;">'USEUNIT Unit#1</pre><hr /></blockquote><font size="2" face="Verdana, Arial, Helvetica">to the Unit#2 - this will make the GlobalVar declared in Unit#1 available in Unit#2. Please see the 'Calling Routines and Variables Declared in Another Unit' help topic.