Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

View...radio buttons

 [1/3] from: jfdutcher1958:yaho:o at: 30-Jun-2004 17:29


The function shown to test the radio buttons, also shown, tests true for all of them....I expected only one...the one selected on the pane. Thought them to be mutually exclusive ?? ************************************************************************************** evaluate-request: func [][ if radbutchk [print "radbutchk"] if radbutadd [print "radbutadd"] if radbutdel [print "radbutdel"] if radbutver [print "radbutver"] if radbutlst [print "radbutlst"] return ] VID code....... across tab radbutchk: radio of 'action h2 blue {Check the winning number below against all my tickets:} return tab radbutadd: radio of 'action h2 blue "Add number below to my file for this game" return tab radbutdel: radio of 'action h2 blue "Delete number below from my file for this game" return tab radbutver: radio of 'action h2 blue "Verify number below is on file for this game" return tab radbutlst: radio of 'action h2 blue {List all numbers for this game (no number need be entered below):} return below John D.

 [2/3] from: moliad::aei::ca at: 30-Jun-2004 21:06


I may be misunderstanding, but right now, you are checking if the words are true or not, but you are actually checking the pointer to the gadgets themselves. Because they are obviously not none or false, they reply as true. what you have to do is verify if data is true or false try this and tell me if it works evaluate-request: func [][ if radbutchk/data [print "radbutchk"] if radbutadd/data [print "radbutadd"] if radbutdel/data [print "radbutdel"] if radbutver/data [print "radbutver"] if radbutlst/data [print "radbutlst"] return ] ----- Original Message ----- From: "John Dutcher" <[jfdutcher1958--yahoo--com]> To: <[rebolist--rebol--com]> Sent: Wednesday, June 30, 2004 8:29 PM Subject: [REBOL] View...radio buttons
> The function shown to test the radio buttons, also shown, tests true for > all of them....I expected only one...the one selected on the pane. > Thought them to be mutually exclusive ?? >
******************************************************************************** ******

 [3/3] from: jfdutcher1958:yaho:o at: 1-Jul-2004 3:14


Yes, the addition of '/data' makes the testing of 'selected' radio buttons work just fine. Thanks much, JOhn D. The list seems to be disfuntional right at the moment....but hopefully you'll get this anyway.