HP Forums
deleting variables HP50g - Printable Version

+- HP Forums (https://www.hpmuseum.org/forum)
+-- Forum: HP Calculators (and very old HP Computers) (/forum-3.html)
+--- Forum: General Forum (/forum-4.html)
+--- Thread: deleting variables HP50g (/thread-1175.html)



deleting variables HP50g - tgahan - 04-26-2014 01:20 AM

Hi Everyone
Is it possible to delete values stored to variables created in a user RPL program
before exiting the program.
Something like Delvar a, b, c, x, y etc as used with the TI89
Thanks for your time


RE: deleting variables HP50g - Han - 04-26-2014 01:29 AM

Try

{ var1 var2 var3 } PURGE

where var1 etc are replaced accordingly


RE: deleting variables HP50g - Dave Britten - 04-26-2014 01:48 AM

Read up on using local variables. Those only exist while the program is running. It looks something like this:

Code:

<< -> X Y
    << X SQ Y SQ + >>
>>



RE: deleting variables HP50g - tgahan - 04-26-2014 01:51 AM

Hi HAN
That worked.
Thanks very much for your time.
Only got the HP50 yesterday so very new to RPL programming.


RE: deleting variables HP50g - tgahan - 04-26-2014 01:55 AM

Hi Dave
Thanks for your help.
Will look up use of local variables.


RE: deleting variables HP50g - Dave Britten - 04-26-2014 02:03 AM

(04-26-2014 01:55 AM)tgahan Wrote:  Hi Dave
Thanks for your help.
Will look up use of local variables.

If I'm not mistaken (and I definitely could be), program execution is slightly faster when operating on locals.


RE: deleting variables HP50g - tgahan - 04-26-2014 02:13 AM

Hi Dave
I will test this out when I get a program up and running.
Thanks again.