Post Reply 
Prime: different kind of variables in programs (visibility)
12-23-2013, 01:13 AM
Post: #1
Prime: different kind of variables in programs (visibility)
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.

Patrice
“Everything should be made as simple as possible, but no simpler.” Albert Einstein
Find all posts by this user
Quote this message in a reply
Post Reply 




User(s) browsing this thread: 3 Guest(s)