Data grid not showing array contents?
dunbarx at aol.com
dunbarx at aol.com
Fri May 20 08:57:14 EDT 2011
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 <keith.clarke at clarkeandclarke.co.uk>
To: How to use LiveCode <use-livecode at lists.runrev.com>
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
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