• ×
    Information
    Need Windows 11 help?
    Check documents on compatibility, FAQs, upgrade information and available fixes.
    Windows 11 Support Center.
  • post a message
  • ×
    Information
    Need Windows 11 help?
    Check documents on compatibility, FAQs, upgrade information and available fixes.
    Windows 11 Support Center.
  • post a message
Guidelines
The HP Community is where owners of HP products, like you, volunteer to help each other find solutions.
Archived This topic has been archived. Information and links in this thread may no longer be available or relevant. If you have a question create a new topic by clicking here and select the appropriate board.
HP Recommended

HP Prime:  How do I create an Input Form to receive several inputs at once? Does someone have an example?

 

Let's say I want to prompt for h, w and l and calculate a volume.  I'd like to make a form to prompt for all the values, on a form, at once.

 

Thanks amigos,

 

Migs

1 REPLY 1
HP Recommended

In the program editor, or in the catalog, find "INPUT" in the menu. Select it and press the HELP key. You may not realize yet that the entire system has contextual help. Try pressing HELP anywhere in the system and see what it brings up! While selected on "INPUT" the calculator brings up the screen with the slightly helpful text:

 

Syntax: INPUT(var,[“title”], [“label”], [“help”], [reset])
or INPUT({vars},[“title”], [{“labels”}], [{“help”}], [{reset}])

Starts a dialog box with header title and one field named label (with value default), displaying help at the bottom. The dialog box includes CANCEL and OK menu keys. If the user presses the OK menu key, the variable var is updated and 1 is returned. If the user presses the CANCL menu key, var is not updated and 0 is returned.

 

Thus something like INPUT({A,B},"Title",{"A Value","B value"},{"This is help for A","This is help for B"}) should get you on your way.


TW

Although I work for the HP calculator group as a head developer of the HP Prime, the views and opinions I post here are my own.
Archived This topic has been archived. Information and links in this thread may no longer be available or relevant. If you have a question create a new topic by clicking here and select the appropriate board.
† The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the <a href="https://www8.hp.com/us/en/terms-of-use.html" class="udrlinesmall">Terms of Use</a> and <a href="/t5/custom/page/page-id/hp.rulespage" class="udrlinesmall"> Rules of Participation</a>.