datagrid problem with arrow btn

Yves COPPE yvescoppe at skynet.be
Wed Sep 16 16:00:42 EDT 2009


Hi list

Little question about datagrid

I have a datagird "form" style

there is an arrow btn to close or open a fld (as in the webinar)

I have a mouseDown fuction in the behavior script

I want to close or open all the arrows at once
so my script is

   dgmouseDown
    if pmouseBtnNum is "1" then
       if the short name of the target is "arrow" then
        if the optionKey is "down" then
        put the dgData of group "DataGrid historique" into theData
        repeat for each key tkey in theData
           put "false" into theData[tKey]["expanded"]
       end repeat
       set the dgData of of group "DataGrid historique" to theData
       send "ResetList" to group "DataGrid historique"
    else
    ...

it doesn't work !

what is wrong ?

thanks

Greetings.

Yves COPPE
yvescoppe at skynet.be




More information about the use-livecode mailing list