Why the chunk error when using quotes for field name?

Anything beyond the basics in using the LiveCode language. Share your handlers, functions and magic here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
vamp07
Posts: 21
Joined: Mon Apr 10, 2006 2:12 pm

Why the chunk error when using quotes for field name?

Post by vamp07 » Tue Mar 10, 2009 9:44 pm

Hi,

I just banged my head for a good 30 minutes because this line of code gives me a chunk error:

answer the number of lines in field "xyz"

While this one does not:

answer the number of lines in field xyz


I thought I was supposed to put field names in quotes? Now I am trying to recreate the error but neither form gives me an error. Is this just some quirkiness in the engine?

Thanks

Steve

Mark Smith
Posts: 179
Joined: Sat Apr 08, 2006 11:08 pm
Contact:

Post by Mark Smith » Wed Mar 11, 2009 3:05 am

The engine will quite often be tolerant about a lack of quotes, if it can make sense of it, but I never knew it to barf on a quoted object reference...

Glad it's working, now, though.

Still, the habit of quoting such references is a good one. The engine's benevolence can't always be relied upon...

Post Reply