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 »

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: 14324
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Data Grid Parsing

Post by Klaus »

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 »

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

Re: Data Grid Parsing

Post by Klaus »

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 »

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: 14324
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Data Grid Parsing

Post by Klaus »

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

:-D
Post Reply