Datagrid Error in Standalone

Peter Haworth pete at
Thu Dec 23 13:07:53 EST 2010

I'll try.  A little difficult since the error doesn't occur in the IDE  
although the datagrid corruption does.

I have the following code in the script for the datagrid.

on selectionChanged
    put "menuPick" && the label of button "DB_ContactInfoType" into  
    send myMessage to button "DB_ContactInfoType"
    put "menuPick" && the label of button "DB_Type" into myMessage
    send myMessage to button "DB_Type"
end selectionChanged

As far as I can tell, the problem occurs when the "send myMessage to  
button "DB_Type" statement is executed (the button is an option  
menu).  There's something else strange going on because I have a  
breakpoint set at the start of the menuPick handler for that button  
but it doesn't always trigger.  The code in the menuPick handler does  
no dg manipulation, just resizes the window depending on the label of  
the button.

The dg corruption goes away if Refresh the datagrid from its property  

Pete Haworth

On Dec 23, 2010, at 6:18 AM, Trevor DeVore wrote:

> On Wed, Dec 22, 2010 at 9:23 PM, Peter Haworth  
> <pete at>wrote:
>> Getting this error in a standalone, doesn't happen in the IDE:
>> Type: Handler: error in statement
>> Object: group 'TaskList' of group 'DB_Activities' of card  
>> 'DB_Activities'
>> of stack 'Tasks' of stack
>> '/Applications/BandTrak/'
>> Line:
>> Line Num: 0
>> Hint: _table.DeleteDataControls
> Can you provide some context such as what is triggering the error?
>> After the error is reported, the data in the datagrid is corrupted.
> The data or the display of the data? If you fetch the dgData of the  
> data
> grid are values missing?
> -- 
> Trevor DeVore
> Blue Mango Learning Systems
> ScreenSteps:
> Releasable Revolution Resources for Developers:
> _______________________________________________
> use-livecode mailing list
> use-livecode at
> Please visit this url to subscribe, unsubscribe and manage your  
> subscription preferences:

More information about the Use-livecode mailing list