I think you have to convert the array into a normal variable first. Arrays are 
not visible as they stand in the usual way.If you create one, and then say:


answer myArray


you will get empty.


Try it, using the "combine" command, of course.


Craig Newman





-----Original Message-----
From: Keith Clarke <[email protected]>
To: How to use LiveCode <[email protected]>
Sent: Fri, May 20, 2011 8:26 am
Subject: Data grid not showing array contents?


Hi folks,
I have an array called tObjectArray, containing a list of objects, in the form 
tObjectArray[1]["object"]. So, answer tObjectArray[5]["object"] returns the 
name 
of object number 5. 

Meanwhile, I have a data grid 'dg Object List', with a column named 'object', 
ready to display this list. However, if I 'set the dgData of group "dg Object 
List" to tObjectArray', the data grid and its 'object' column remain resolutely 
empty.

Have I missed something fundamental here - an array level or data grid 
property, 
perhaps?
Best,
Keith..



_______________________________________________
use-livecode mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

 

_______________________________________________
use-livecode mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to