Data Grid Parsing

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

buchacho
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 50
Joined: Fri Jun 14, 2013 10:22 pm

Re: Data Grid Parsing

Post by buchacho » Fri Jun 28, 2013 1:32 am

Code: Select all

 put the dgData of group "GeneralTableGrid" into GeneralTableGridArray
answer the num of keys of GeneralTableGridArray
error: button "Generate new Table #2 items": execution error at line 8 (Chunk: can't find object), char 19

Klaus
Posts: 14199
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Data Grid Parsing

Post by Klaus » Fri Jun 28, 2013 1:18 pm

buchacho wrote:error: button "Generate new Table #2 items": execution error at line 8 (Chunk: can't find object), char 19
Make sure that group is on the current card when the script executes or use a DESCRIPTOR:
...
put the dgData of group "GeneralTableGrid" OF CD "XYZ" into GeneralTableGridArray
...

buchacho
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 50
Joined: Fri Jun 14, 2013 10:22 pm

Re: Data Grid Parsing

Post by buchacho » Tue Jul 09, 2013 12:48 am


Klaus
Posts: 14199
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Data Grid Parsing

Post by Klaus » Tue Jul 09, 2013 12:21 pm

buchacho wrote:That syntax has issues: http://ftp.runrev.com/forums/viewtopic. ... 849#p68883
Which one?

buchacho
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 50
Joined: Fri Jun 14, 2013 10:22 pm

Re: Data Grid Parsing

Post by buchacho » Tue Jul 09, 2013 5:59 pm

Code: Select all

the num of keys of GeneralTableGridArray
It needs to be more like this (as found in the thread I linked):

Code: Select all

put the keys of theDataGridArray into tKeys
put the num of lines of tKeys into tNumberOfKeys
Thanks!

Klaus
Posts: 14199
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Data Grid Parsing

Post by Klaus » Tue Jul 09, 2013 6:10 pm

Ah, I see, and it was even my code... 8-)

:-D

Post Reply