Datagrid Error in Standalone

Peter Haworth pete at mollysrevenge.com
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  
myMessage
    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  
inspector.

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 mollysrevenge.com>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/BandTrak.app/Contents/MacOS/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: http://www.screensteps.com
> Releasable Revolution Resources for Developers:
> http://revolution.bluemangolearning.com
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your  
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>





More information about the Use-livecode mailing list