HP Forums

Full Version: Prime: different kind of variables in programs (visibility)
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Exemple program code
Code:
EXPORT MyExpVar;
MyGlobVar;

EXPORT MYFunc()
BEGIN
LOCAL MyLocvar;
...
END;
MyExpVar is visible everywhere, in all functions of all programs, and Home and memory manager. It is the EXPORT keyword that make it visible from outside of program.
MyGlobVar is visible in all functions in this program
MylocVar is visible in this function of this program only.

MyExpVar and MyGlobVar keep their values between runs of the program.
And they are reset to source code values every time the program is recompiled.
Reference URL's