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

/view radio button values

 [1/2] from: rchristiansen::pop::isdfa::sei-it::com at: 1-Aug-2000 13:55


How can I retrieve the value of a radio button? Using the following... view layout [ text "copy" copy-ack: radio of 'effects filter-ack: radio of 'effects button "do it" [print copy-ack] ] I try to retrieve the value of copy-ack in the console, but it prints only that it is an ?object? And so I try this... view layout [ text "copy" copy-ack: radio of 'effects filter-ack: radio of 'effects button "do it" [probe copy-ack] ] Using 'probe instead of 'print makes /View lock up solid. It also felt like it was taxing my system's RAM before I killed /View. The documentation for radio buttons in /View is very limited. Can anyone help me? -Ryan

 [2/2] from: gkoplas:localnet at: 2-Aug-2000 8:15


----- Original Message ----- From: <[RChristiansen--pop--isdfa--sei-it--com]>
> How can I retrieve the value of a radio button? > Using the following...
<<quoted lines omitted: 4>>
> button "do it" [print copy-ack] > ]
The property you're looking for is "/state", and the value will be usable as a boolean (I'm not sure if it actually uses the values "true" and "false", or "yes" and "no", or whatever, so I've hard-coded "true" in my update to your layout rather than using to-string). Note that you can also set this value in a block when declaring the radio button to set the default option, as shown. e.g.
>>>>>>>>
view layout [ text "copy" copy-ack: radio of 'effects [state: true] filter-ack: radio of 'effects [state: false] button "do it" [if copy-ack/state [print "true"] ] ] <<<<<<<<< ... or whatever it is you'd really like to do with it. Hope that's what you were looking for. -- Geoff Koplas

Notes
  • Quoted lines have been omitted from some messages.
    View the message alone to see the lines that have been omitted