|Re: variables in other directories|
Message #4 Posted by Vieira, Luiz C. (Brazil) on 21 Jan 2003, 9:06 p.m.,
in response to message #3 by MikeN
I agree with the upper position: a directory with the variables with a subdirectory with the programs. What bothers me is that you must pass through the variables to reach the programs, and it may not be wished, I don't know. Even so, deleting a filled directory requires the specific use of PGDIR, that must be "spelled-out" or assigned to a softkey in Custom menu. This is a relative protection, agree?
It seems to me you know how to recover from this unintentional variable erase, but let's mention it, as it may be not known by others. This is a very important resource available in any HP48: recovery from a deletion. The HP28S does not allow such recovery procedure. And many former HP28 users may not know it can be undone in the HP48.
Both S-series and G-series allow such a recovery, even if it happens from a PURGE or a left-shift key + softkey. You just need to recall the last ARGuments. BUT this feature is active ONLY if Save Last Arguments flag, # -55, is CLEARED. If it is SET, last ARGument feature is disabled (inverse logic). If you are in doubt, [MODES] [FLAGS] and roll-down till you find flag 55 and you'll see:
55 Save Last ArgsIf you press the check-mark softkey it changes to:
V 55 No Last Args
About protecting data, the only means I know is by generating a library with your original source code. I did it once for the HP48SX as soon as I got the Goodies Disks from EduCalc (1994, I guess). I do not remember how to do it, I must read the docs again, but I remember you could hide whatever you want when defined as hidden for the compiler, running on a PC. Otherwise, all I have no idea on to hide a variable or protect it from being overwritten or erased. All I know is that when you are transferring data from an external device to the calculator you can set overwrite or create a new name, usually prevname.n, were n goes from 1 to as many copies as possible from the original file. But I have not found a way to do it by the keyboard. I also remember this issue was discussed in here about one year ago, and the ones discussing this possibility came to the conclusion that we may not be able to activate it for keyboard entries because it may be more related to a Kermit resource than to an HP48's resource.
I believe this is all I can mention about it.
Sorry not helping the way I'd like to.