data grid error - Error description: Chunk: can't find background

James Little littlejamesw at mac.com
Wed Jun 27 13:44:01 EDT 2012


Hi James,

My guess is that the group is labeled "DataGrid 1" rather than "Datagrid1".  Notice the space before 1.  This very issue has tripped me up in the past.

Jim L. 


On Jun 27, 2012, at 10:32 AM, James Hale wrote:

> Hi,
> 
> I have finally got around to using the DataGrid.
> 
> I have an array that I want to display in a datagrid
> I have dragged one on to the current card, named it "datagrid1" and set the column names.
> 
> as an example:
> 
> put "fred" into theRecordsB[1][name]
> put "fred file" into theRecordsB[1][filename]
> put "a page" into theRecordsB[1][display_page]
> put "yes" into theRecordsB[1][current_book]
> put "1234" into theRecordsB[1][id]
> 
> set the dgData of group "DataGrid1" to theRecordsB
> 
> 
> When I run this I get the following error:
> 
> Message execution error:
> Error description: Chunk: can't find background
> Hint: 
> 
> What does this mean?
> What background?
> 
> Apart from setting the column names in the Datagrid object, is there something else I should have done?
> 
> 
> James
> 
> 
> _______________________________________________
> 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