HP Forums
Choose function - 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: Choose function (/thread-3844.html)



Choose function - Heino - 05-15-2015 06:49 AM

Hallo all,

How can i make a Choose function with e. g. a yellow background?


RE: Choose function - salvomic - 05-16-2015 05:45 PM

(05-15-2015 06:49 AM)Heino Wrote:  Hallo all,

How can i make a Choose function with e. g. a yellow background?

I think no, almost for now.

Standing on the help we have:
«CHOOSE(var, “title”, “item1”, “item2”,[…"item14"]) or CHOOSE(var,"title",{"item1"..."itemN")
Description
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).»

Salvo


RE: Choose function - kharpster - 05-16-2015 09:21 PM

I would have to say that at the moment you cannot choose the background graphic for the choose command. I have tried in vain, and it appears that the choose box only appears on top of the screen that the program is started from and not the current screen in the program (i.e. RECT_P() to clear the screen). If anyone has found a way to circumvent this I would love to hear about it...


RE: Choose function - Heino - 05-17-2015 01:49 PM

Thanks for the answer!