Re: Characters that can be used in an array key

2012-04-30 Thread Richard Gaskin
David Epstein wrote: Are there any limits on what characters can be used in an array key? For example, do tab characters cause problems? Many thanks. Earlier this month I mentioned having rec'd the definition for arrayEncoded data, at the bottom of this post: http://lists.runrev.com

Re: Characters that can be used in an array key

2012-04-30 Thread Bob Sneidar
want to translate from array keys to SQL column names. Bob On Apr 29, 2012, at 6: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? Many thanks. David Epstein

Re: Characters that can be used in an array key

2012-04-30 Thread Richard Gaskin
Bob Sneidar wrote: Even you could use tabs in an array key, why would you want to? I cannot think of an application for this. I would stick to the same rules that SQL enforces for column names, and always use lower case, as SQL is sometimes case sensitive. That way you never shoot yourself

Re: Characters that can be used in an array key

2012-04-30 Thread Jerry Jensen
On Apr 30, 2012, at 8:54 AM, Richard Gaskin wrote: it seems that the only character we must avoid in array keys is NULL, since that's used internally as a delimiter between the key and the value. As far as I can tell, all other characters are allowable. It would be fun to see how the

Re: Characters that can be used in an array key

2012-04-30 Thread Dar Scott
On Apr 30, 2012, at 1:24 PM, Jerry Jensen wrote: On Apr 30, 2012, at 8:54 AM, Richard Gaskin wrote: it seems that the only character we must avoid in array keys is NULL, since that's used internally as a delimiter between the key and the value. As far as I can tell, all other characters

Re: Characters that can be used in an array key

2012-04-30 Thread Dar Scott
On Apr 30, 2012, at 9:54 AM, Richard Gaskin wrote: While that article is still being finished, from what I've seen in Mark Waddingham's example code it seems that the only character we must avoid in array keys is NULL, since that's used internally as a delimiter between the key and the

Re: Characters that can be used in an array key

2012-04-30 Thread Richard Gaskin
Dar Scott wrote: On Apr 30, 2012, at 9:54 AM, Richard Gaskin wrote: While that article is still being finished, from what I've seen in Mark Waddingham's example code it seems that the only character we must avoid in array keys is NULL, since that's used internally as a delimiter between

Re: Characters that can be used in an array key

2012-04-30 Thread Dar Scott
On Apr 30, 2012, at 3:44 PM, Richard Gaskin wrote: While worth revising at first opportunity, to date I don't recall it being reported as an issue here or in the forums. I have brought this up every two or three years for a long time. Perhaps it is listed as an enhancement request.

Re: Characters that can be used in an array key

2012-04-30 Thread Richard Gaskin
Dar Scott wrote: I am not advocating doing away with arrays. I am advocating doing them right. This feature (bug) should have been fixed before arrayEncode() was created, immediately before if not well before. Back in the olden days when people still used Usenet, there was a lengthy

Re: Characters that can be used in an array key

2012-04-30 Thread Dar Scott
I doubt that anybody is to go say my code broke when this is fixed. I understand the collection of odd stories, but LiveCode is for everybody not just the priesthood. I think the issue here is more than unicode; binary data applies. Thank you for putting up with my mock crankiness. Dar

Re: Characters that can be used in an array key

2012-04-30 Thread Richard Gaskin
Dar Scott wrote: I doubt that anybody is to go say my code broke when this is fixed. I understand the collection of odd stories, but LiveCode is for everybody not just the priesthood. I think the issue here is more than unicode; binary data applies. Agreed on all fronts. Would be nice.

Characters that can be used in an array key

2012-04-29 Thread David Epstein
Are there any limits on what characters can be used in an array key? For example, do tab characters cause problems? Many thanks. David Epstein ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe

Re: Characters that can be used in an array key

2012-04-29 Thread Phil Davis
wrote: Are there any limits on what characters can be used in an array key? For example, do tab characters cause problems? Many thanks. David Epstein ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe

Re: Characters that can be used in an array key

2012-04-29 Thread Dar Scott
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