[REBOL] Re: how to get check box state?
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
> work...
>
> rebol []
> view layout [
>
> mycheckbox: check
> button "test" [probe mycheckbox/value]
> ]
>
> ...
> 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.