0 Members and 2 Guests are viewing this topic.
Yup, removing EXPORT before variables makes the variable "super global". I don't know how to say it, but there are three types of variables on the HP Prime:-Local: Declared at the start of a function, only useable in that function and cleared from memory once returning from the function-Global: Declared with EXPORT at the start of the program, useable through the entire program. The variable is deleted once quitting the program.-External: Declared without the EXPORT command, still at the start of the program. This type remains intact once exiting the program and can be used anywhere.In TI and Casio BASIC, however, we can edit variables as we wish, so people can fake highscores and cheat in long RPGs. Even if only the source HP PPL program has access to a declared variable, can that variable still be edited with an on-calc editor or something? Also another question: When using ON+SYMB or pressing the RESET button, are variables cleared? If so, then is there a way to ensure that variables are reset-proof? Else, this might be a problem for role-playing/adventure games like Legend of Zelda or Final Fantasy. Since the HP Prime isn't that stable, we sometimes have to reset it to bring back normal behavior, and it would suck to have to backup our progress on a computer every two hour or so...
Ok, but if someone accidentally opens the code in the editor (from the App thing there) will they still be wiped out?