Data Grid Table Trouble

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

Post Reply
Gage
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 224
Joined: Tue Mar 26, 2013 8:59 pm

Data Grid Table Trouble

Post by Gage » Sat Aug 16, 2014 6:20 am

Hello!

I am working with a DG Table and while I was debugging it, something that initially was working is now broken, and has left me staring blankly at the screen with nowhere to turn.

When my code reaches the end of the FillInData handler, it throws an error and stops. However, there is no error in the error dialog box, just an answer dialog that says

"an error has occurred in behavior for the column template:
Chunk: no such object"
[OK] [Edit Script]

When I click "Edit Script", it brings me to the behavior script for one of the columns and highlights the first line of code in the handler, which has absolutely no errors.

first line: "switch item 1 of pData"

... to bolster my case, it was working perfectly in the past; I was debugging a different handler entirely.

So I stepped through the FillInData handler line by line, and, as I mentioned, the whole handler is fine and executes, but once the "end FillInData" line executes, the aforementioned error answer box pops up.

I don't know how to interpret the error dialog or where my problem lies. I just fixed a bug in a different handler, so for all I know, this was supposed to work perfectly now that I squashed the other bug.

Any insight on how I can interpret or react to this message would be greatly appreciated!

Kind regards,
Phil E.

Edit: For the record, I have copy/pasted everything (row template, behavior scripts) into a new DG Table just in case something corrupted, and I am having exactly the same results.

snm
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 253
Joined: Fri Dec 09, 2011 11:17 am

Re: Data Grid Table Trouble

Post by snm » Sat Aug 16, 2014 7:48 am

Are you sure pData isn't empty from time to time?
It'll be helpful if you send the behavior script and some samples of data from this column (going to pData).

Marek

Gage
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 224
Joined: Tue Mar 26, 2013 8:59 pm

Re: Data Grid Table Trouble

Post by Gage » Sat Aug 16, 2014 10:16 pm

Evidently, I had made some code obsolete, and it was causing the script to get hung up. Took a bit to find, since LiveCode didn't throw a particularly traceable error.

Glad to be making progress again and not staring blankly at a screen!

Thanks for the help

Phil E.

Post Reply