HP Forums
Limitation of CHOOSE command - Printable Version

+- HP Forums (https://www.hpmuseum.org/forum)
+-- Forum: HP Calculators (and very old HP Computers) (/forum-3.html)
+--- Forum: HP Prime (/forum-5.html)
+--- Thread: Limitation of CHOOSE command (/thread-290.html)



Limitation of CHOOSE command - veeblefester - 12-31-2013 01:15 PM

I/O command CHOOSE. Page 549 of the Prime User Guide.

Up to and including "item14" works.

...,"itemn" is wrong!

With "item15" and beyond you get a Syntax Error.

Someone please prove me wrong.

I need "item1" thru "item20".

It is looking like I will have to write code for a CHOOSE 1 thru 10 and a CHOOSE 11 thru 20. That would not be good programming.

Thanks in advance for any help.


RE: Limitation of CHOOSE command - Tim Wessman - 12-31-2013 04:58 PM

Look at the on-calc help for choose. The built in help inside the calculator will nearly always be the most accurate.

Quote:Syntax: CHOOSE(var, “title”, “item1”, “item2”,[…"item14"]) or CHOOSE(var,"title",{"item1"..."itemN"})

Displays a choose box with the given title and containing items with the strings "item1", etc. If the user choose an object, var will be updated to contain the number of the selected object (an integer, 1, 2, 3, …); otherwise, stores zero in var if the user exits without choosing.

Returns true (non zero) if the user selects an object, otherwise return false (0).

Give a list as item #3.


RE: Limitation of CHOOSE command - veeblefester - 12-31-2013 05:36 PM

Thanks for the help Tim.