Hi guys: I'm trying to change (by code) the state of several toggles every time the user clicks on a check box. This is my code and the error message I receive. Why? How can I do that? Thanks
R E B O L []
view layout [
chkAll: check-line "All of them" [
foreach tg [tgA tgB tgC] [tg/state: chkAll/data show tg]]
tgA: toggle "A"
tgB: toggle "B"
tgC: toggle "C"
]
** Script Error: Cannot use path on word! value
** Where: func [face value][foreach tg [tgA tgB tgC] [tg/state: chkAll/data show tg]]
** Near: tg/state: chkAll/data show tg