Page 1 of 1

Why the chunk error when using quotes for field name?

Posted: Tue Mar 10, 2009 9:44 pm
by vamp07
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

Posted: Wed Mar 11, 2009 3:05 am
by Mark Smith
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...