Module-Level Variables

Y

Ying

I'm having trouble using module-level variables.

If I define a variable as public in the Declaration
section of a module, (supposedly) once I initiate it in
one procedure, I should be able to use it in other
procedures in the project.

What I've been experiecing is that after I run the
procedure that initiates the module-level variable, and
try to run another procedure that calls for that variable,
I don't always get the initiated value for that variable,
especially when I have to stop or debug the procedure that
calls for the variable. Can anyone give me some insights?

Thanks very much!
 
V

Vasant Nanavati

Hi Ying:

Global variables are reset when you make changes to procedures resulting in
recompilation.

Regards,

Vasant.
 
Y

Ying

Thank you!!
-----Original Message-----
Hi Ying:

Global variables are reset when you make changes to procedures resulting in
recompilation.

Regards,

Vasant.




.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top