Home   Archive   Permalink



Cannot use path on word! value

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

posted by:   cosacam       25-Mar-2019/9:43:39-7:00



Name:


Message:


Type the reverse of this captcha text: "s s a p y b - n i"



Home