On Sep 16, 2009, at 4:00 PM, Yves COPPE wrote:
I want to close or open all the arrows at once so my script isdgmouseDown 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 ?
It probably because you are trying to redraw the data grid from inside an event that was sent to a data grid control. The engine doesn't like it when you try to delete a control that is processing an event.
What Sorts of Things Should I Not Do In Order To Avoid Needless Suffering?: <http://revolution.screenstepslive.com/spaces/revolution/manuals/datagrid/lessons/3093-What-Sorts-of-Things-Should-I-Not-Do-In-Order-To-Avoid-Needless-Suffering- >
-- Trevor DeVore Blue Mango Learning Systems ScreenSteps: http://www.screensteps.com Developer Resources: http://revolution.bluemangolearning.com _______________________________________________ use-revolution mailing list [email protected] Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
