At 1:37 PM +0000 10/31/01, Ray G Miller wrote:
>Do squre brackets, "[]", define an array? Are arrays tab delimited, comma
>delimited
>or can any char work? Besides "itemArray", what are the other array tools?
>So many questions, so little doc...
>
>How many other undocumented functions are there? [Of course, only Scott
>knows...]

Often it's more a case of there's so much to know, rather than there not being docs.

In any case, if you open the help index and scroll to arrays, associative and click on 
it, you'll see the entry for containers. This does have a bit on arrays, you just have 
to scroll down to it.

Arrays are denoted by brackets: a[1] is an array element.

Arrays are not delimited by anything (although check out the new split and combine 
commands in 2.4)

Arrays are associative. This means that anything is a valid key, rather than just 
numbers. You can use numbers, but you don't need to predefine the valid range of 
numbers, nor do you have to use them consecutively. Again, _anything_ is a valid key. 
phoneNumbers["Geoff Canyon"] is perfectly valid, and could store my phone number. This 
fact combined with the keys() function can be used in some interesting ways.

Have fun, associative arrays are a kick!

gc


Archives: http://www.mail-archive.com/[email protected]/
Info: http://www.xworlds.com/metacard/mailinglist.htm
Please send bug reports to <[EMAIL PROTECTED]>, not this list.

Reply via email to