INPUT: can not get checkboxes to work - 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: INPUT: can not get checkboxes to work (/thread-15851.html) |
INPUT: can not get checkboxes to work - emax - 11-06-2020 07:17 PM I have tried a form on the Prime. It works except for the two checkboxes at the very end. I want them to be "either/or" checkboxes, i.e.: only one shall be selectable. If I understod the docs right, such checkboxes shall be enumerated - which I tried. But no success, I can check them both. I tried two different versions:
Neither worked. Where is my mistake? Code:
RE: INPUT: can not get checkboxes to work - emax - 11-06-2020 07:27 PM I have now tried with an enumeration of '2' for both and then with '3' for both as well. Both values seem to work. If I use '1', it doesn't. I don't understand the logic behind this. RE: INPUT: can not get checkboxes to work - rprosperi - 11-06-2020 07:56 PM In the manual, p. 653: "{var_name, real, [{pos}]} to create a check box control. If real is >1, this check box gets pooled with the next n -1 check boxes in a radio group (that is, only one of the n check boxes can be checked at any time)" RE: INPUT: can not get checkboxes to work - emax - 11-06-2020 08:12 PM Ahh, had missed this one. Seems logic now. Thank you so much! |