Pulling Data from Data Grid in another Stack

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
FinishTheCode
Posts: 5
Joined: Wed Apr 17, 2013 3:53 pm

Pulling Data from Data Grid in another Stack

Post by FinishTheCode »

I am trying to pull data from a Data Grid into another stack. How do I go about doing this.

One stack contains all the settings in a DataGrid with the names of worker types etc

My other Stack wants to pull that data (worker types) into a listbox.
Klaus
Posts: 14324
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Pulling Data from Data Grid in another Stack

Post by Klaus »

Hi FinishTheCode,

welcome to the forum! :D

You can address all objects with their (long) descriptor "... OF CARD X OF STACK Y:
...
put the dgData of grp "datagrid in another stack" of cd 1 of stack "the other stack" into tNewArray
## or any other dtagrid command.
...
Is that what you mean?


Best

Klaus
FinishTheCode
Posts: 5
Joined: Wed Apr 17, 2013 3:53 pm

Re: Pulling Data from Data Grid in another Stack

Post by FinishTheCode »

Thanks so much :D

That is exactly what I am looking for.
FinishTheCode
Posts: 5
Joined: Wed Apr 17, 2013 3:53 pm

Re: Pulling Data from Data Grid in another Stack

Post by FinishTheCode »

After getting that into an array, how do I put it into another Data Grid?
snm
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 253
Joined: Fri Dec 09, 2011 11:17 am

Re: Pulling Data from Data Grid in another Stack

Post by snm »

set the dgData of group "new DataGrid" to tPulledArray

Marek
Post Reply