Program local variables issue
|
02-10-2020, 06:16 AM
Post: #2
|
|||
|
|||
RE: Program local variables issue
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 Although I work for the HP calculator group, the views and opinions I post here are my own. I do not speak for HP. |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)