how to get check box state?
[1/2] from: rishioswal:yah:oo at: 23-Aug-2001 11:35
hi. how do you get the state of a checkbox in view.
I'd like to do something like this but it doesn't
work...
rebol []
view layout [
mycheckbox: check
button "test" [probe mycheckbox/value]
]
...
the above gives an error..
[2/2] from: sanghabum::aol::com at: 23-Aug-2001 15:33
[rishioswal--yahoo--com] writes:
Hi there,
> hi. how do you get the state of a checkbox in view.
> I'd like to do something like this but it doesn't
<<quoted lines omitted: 6>>
> ...
> the above gives an error..
Try:
probe mycheckbox/data
'Value only works in the action facet for the item itself. So this would work:
mycheckbox: check [probe value]
though it isn't much use, except to save the value somewhere else:
mycheckbox: check [SavedValueforCheckbox: value]
Hope that helps,
--Colin.
Notes
- Quoted lines have been omitted from some messages.
View the message alone to see the lines that have been omitted