Quotes Required Around Keys in 2 Dimensional Arrays?

Jeanne A. E. DeVoto jeanne at runrev.com
Mon Apr 15 03:44:00 EDT 2002


At 6:06 PM -0700 4/14/2002, Sivakatirswami wrote:
>I use arrays mostly in CGI's and have found that quotes are required around
>the key to pass its value... but this does not appear to be documented.

As far as I've been able to tell, key names are treated like literals -
which is to say that it's not an absolute requirement that they be quoted,
but you'll get problems if one is a variable name or reserved word, so it's
much better style to quote them.

I'll put a note in appropriate spots in the documentation to clarify this.

--
Jeanne A. E. DeVoto ~ jeanne at runrev.com
Runtime Revolution Limited - The Solution for Software Development
http://www.runrev.com/





More information about the use-livecode mailing list