In a subprocedure, you can define local variables with the Static keyword. That means the contents of that variable will be available upon every call to the procedure. So you could overwrite the value, or use the value last set into the field. That is to say, the field will not initialize when the procedure is called.

So if I call ProcA once and set a static variable to "Hi", then next call to ProcA will still have the value of "Hi" in the static variable.

-Kurt

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2025 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.