Characters that can be used in an array key

Dar Scott dsc at swcp.com
Mon Apr 30 00:02:42 EDT 2012


On Apr 29, 2012, at 7:36 PM, David Epstein wrote:
> Are there any limits on what characters can be used in an array key?  For example, do tab characters cause problems?

NUL characters do funny things.  Avoid those.  A NUL is called null in LiveCode and is numToChar(0).  

The result of arithmetic have numberFormat applied to them to create strings for keys, so you might need to be careful there when using numbers, the same number could end up being two different keys.

I have not noticed any problem with tabs.  

I am curious as to what else you learn.

Dar Scott




More information about the use-livecode mailing list