The Museum of HP Calculators

HP Forum Archive 21

[ Return to Index | Top of Index ]

HP PRIME: Hide return value from program and swap Edit with Run
Message #1 Posted by vrrr on 9 Nov 2013, 8:40 a.m.

2 simple questions:

1. I have made a program that uses the input command and then calculates a number via a msgbox call. When I run the command, I get prompted for the input, I press Enter and the result is displayed via a msgbox. When I press OK or Enter, I see a return value of 0 with a green information 'i' icon. Is there a way to turn this 'feature' off?

2. In my program list (Shift-1), when I highlight the app I want using the directional keypad and press Enter, it goes into Edit mode. Can I switch the position of Edit and Run so that when I press Enter it runs the program instead of editing it? If I can't switch the softkey menus around can I run the program without touching Run on the display?

      
Re: HP PRIME: Hide return value from program and swap Edit with Run
Message #2 Posted by Joe Horn on 9 Nov 2013, 11:59 a.m.,
in response to message #1 by vrrr

Quote:
1. I have made a program that uses the input command and then calculates a number via a msgbox call. When I run the command, I get prompted for the input, I press Enter and the result is displayed via a msgbox. When I press OK or Enter, I see a return value of 0 with a green information 'i' icon. Is there a way to turn this 'feature' off?

Two suggestions come to mind. (a) Don't display the result in a message box; just RETURN it. That way it'll be the value which appears at the end instead of the annoying zero. (b) Don't run it with the Run button. Run it by name from Home. Either type its name (if it's short enough), or press Toolbox User to echo the name onto the edit line. Of course, if you run it from Home, you'll have to put its input(s) in parentheses after the name, unless your program explicitly prompts for inputs.

Quote:
2. In my program list (Shift-1), when I highlight the app I want using the directional keypad and press Enter, it goes into Edit mode. Can I switch the position of Edit and Run so that when I press Enter it runs the program instead of editing it? If I can't switch the softkey menus around can I run the program without touching Run on the display?

No, you can't rearrange the soft keys. Yes, you can run it without the Run button, by running it from Home (or CAS). See above for details.

-Joe-

            
Re: HP PRIME: Hide return value from program and swap Edit with Run
Message #3 Posted by vrrr on 9 Nov 2013, 4:04 p.m.,
in response to message #2 by Joe Horn

Thank you. I have modified my program to create a general 'Real Estate' program. In this program, I have 2 EXPORT statements (WEEK2MONTH and MONTH2WEEK) with a single argument. The program simply converts the weekly amount to a monthly amount (and vice versa) and returns the result.

To access the programs I use the Toolbox key, right arrow once on the 'Real Estate' grouping, up or down to select either WEEK2MONTH or MONTH2WEEK and Enter. Type in the value and Enter. No need to touch the screen!

This methodology in my opinion works better than msgbox with input fields, etc.. (even though the msgbox could say "$XXX.XX per week is equal to $XXXX.XX per month.")

:)


[ Return to Index | Top of Index ]

Go back to the main exhibit hall