Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

HP PRIME : How to delete a variable ?

3,459 views
Skip to first unread message

mustapha DAOUDI

unread,
Feb 11, 2017, 12:35:35 PM2/11/17
to
I would like to delete a variable created by the user on HP prime , but the command "Purge" is only effective in CAS mode .
Is there any command that can do this ,from a program , or manually from the home screen ?

Thank you.

Finally , the saturn familly, real or emulated are the best .

Joe Horn

unread,
Feb 12, 2017, 9:58:20 AM2/12/17
to
On Saturday, February 11, 2017 at 12:35:35 PM UTC-5, mustapha DAOUDI wrote:
> I would like to delete a variable created by the user on HP prime , but the command "Purge" is only effective in CAS mode .
> Is there any command that can do this ,from a program , or manually from the home screen ?

In Home, use DelHVars(n) or DelHVars("name") to delete the specified Home user variable.

An easier method, however, is to press Mem (Shift Toolbox), highlight User Variables, and press backspace to clear all your Home user-created variables. OR you can enter the User Variables catalog, press up-arrow to jump to the bottom of the list where your own user-created variables are, and delete them selectively by highlighting them one at a time and pressing backspace.

Alternative method: In Home view, press Vars, make sure the User tab is selected, select User Variables, and backspace the variables you wish to purge.

Hope that helps!

-Joe-

mustapha DAOUDI

unread,
Feb 12, 2017, 10:03:32 AM2/12/17
to
Hello Joe !

Thank you very much, i was looking for the command, and you showed it to me. I will try it in a progrem.

Many thanks .

mustapha DAOUDI

unread,
Feb 12, 2017, 10:03:33 AM2/12/17
to

gbe...@gmail.com

unread,
Mar 4, 2018, 2:18:40 PM3/4/18
to
On Saturday, February 11, 2017 at 12:35:35 PM UTC-5, mustapha DAOUDI wrote:
I can delete a variable, such as ABC because when I call up the Vars>Catalog, the User tab will show up. However, with a single letter variable (eg A), when I want to delete it using the same method as for ABC, the User tab doesn't show, presumably because it is a single letter variable (but why?). Is there an easy way (preferably keyboard) to reset a single letter variable to zero, or better still reset all the single letter variables to zero at once. Thanks.

Joe Horn

unread,
Mar 4, 2018, 9:30:49 PM3/4/18
to
The single-letter variables (including theta) are permanently built-in variables
which cannot be deleted. You can "clear" A (for example) two different ways:

(1) A:=0
(2) Mem, User Variables, highlight A, press the backspace or Del key,
or tap the Reset softkey.

I don't think that there is a way to set A-Z equal to zero all at once without also purging all user-created variables.

However, please know that there is no real need to "clear" the single-letter variables, since doing so doesn't free up any memory (they always exist, containing a real number, no matter what). Just set each one as needed. Think of them as shelves; it's ok to have random stuff on shelves even when you're not using that stuff. Well-written programs always initialize the variables that will be used anyway.

-Joe-
0 new messages