Post Reply 
Program local variables issue
02-10-2020, 06:33 AM
Post: #3
RE: Program local variables issue
(02-10-2020 06:16 AM)cyrille de brébisson Wrote:  Hello,

Program globals (ie, variables declared in a program outside of the scope of functions) are persistent.
By default, they are not exported (meaning that they are hidden from the user outside of the program, EXCEPT if they are fully qualified, they will not apear in the UI either).
EXPORT makes them exported. LOCAL is a marker for not exported, but since it is the default, it is optional. It is however good practice to put it because it makes the variable declaration more obvious.

Program global ARE persistent from run to run of the program. They should also resist a recompile if all goes well. They should resist a calculator power cycle/reboot also.
They will NOT survive a send/receive however.

Cyrille

OS upgrade resistant, too! Right?
- -
VPN
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Program local variables issue - DrDarius - 02-10-2020, 02:25 AM
RE: Program local variables issue - CyberAngel - 02-10-2020 06:33 AM



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