Help with INPUT and chekbox
|
05-22-2015, 10:35 AM
Post: #1
|
|||
|
|||
Help with INPUT and chekbox
hi,
I need to se two checkboxes in INPUT in a program. This chunk of code doesn't work: Code: {flg,2,{85,2, 5}}, {beg,1, {15,1,5}} if I check flg, is unchecked beg, and vice versa... I will set two checkbox not two radio buttons... help Salvo ∫aL√0mic (IT9CLU) :: HP Prime 50g 41CX 71b 42s 39s 35s 12C 15C - DM42, DM41X - WP34s Prime Soft. Lib |
|||
05-22-2015, 12:04 PM
(This post was last modified: 05-22-2015 12:05 PM by DrD.)
Post: #2
|
|||
|
|||
RE: Help with INPUT and chekbox
According to Help Input Form:
{var_name, real, [{pos}]} to create a checkbox control. If real is >1 then this checkbox gets pooled ... So use the value 0 for real, then your check boxes will be able to get checked independently: Change this: {flg,2,{85,2, 5}}, {beg,1, {15,1,5}} to this: {flg,0,{85,2, 5}}, {beg,0, {15,1,5}} |
|||
05-22-2015, 12:22 PM
Post: #3
|
|||
|
|||
RE: Help with INPUT and chekbox
In case my previous suggestion doesn't work for your example, here is another working fragment:
Code:
|
|||
05-22-2015, 01:42 PM
Post: #4
|
|||
|
|||
RE: Help with INPUT and chekbox
yeah, Dale!
it work well. I thought that the logic was 0-1, but I had only examples with 1 or 2... Another question, about INPUT: I've three fields: day (textbox), month (dropbox), year (textbox): Code:
I thought a sequence like 1-2-3, not 1-3-(2?)... There are customization to set the correct sequence? (PS: I'm using input like this one into "Simple Interest" and "Odd period" program, to calc date difference, days for interest, and so on...) Salvo ∫aL√0mic (IT9CLU) :: HP Prime 50g 41CX 71b 42s 39s 35s 12C 15C - DM42, DM41X - WP34s Prime Soft. Lib |
|||
05-22-2015, 03:04 PM
Post: #5
|
|||
|
|||
RE: Help with INPUT and chekbox
I'm not sure. Could you post the entire INPUT() line? Most likely it has to do with the position parameters. Perhaps line length gets too long?
Also, I get a syntax error when compiling the odd_period() program (from your other thread), when run on the emulator. Does it run okay for you? |
|||
05-22-2015, 03:55 PM
(This post was last modified: 05-22-2015 05:38 PM by salvomic.)
Post: #6
|
|||
|
|||
RE: Help with INPUT and chekbox
(05-22-2015 03:04 PM)DrD Wrote: I'm not sure. Could you post the entire INPUT() line? Most likely it has to do with the position parameters. Perhaps line length gets too long? the long long line is this, but I must reorder some parameters (obviously the dates should be for me, Italian, dd mm yy)... Code:
Quote:Also, I get a syntax error when compiling the odd_period() program (from your other thread), when run on the emulator. Does it run okay for you? This morning I copied from my raft here in the Mac... EDIT: now it should work. I've put in the post the version from the Prime... Salvo ∫aL√0mic (IT9CLU) :: HP Prime 50g 41CX 71b 42s 39s 35s 12C 15C - DM42, DM41X - WP34s Prime Soft. Lib |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 2 Guest(s)