It would be nice if the array functions supported arrays within arrays.
Eg
put "Mozart" into theComposers[a]
put "Beethoven" into theComposers[b]
put theComposers into theMusic[compose] (nb: script erro...r)
put theMusic[compose[a]] (nb: script error...)
-- Mozart
On another topic I've noticed that keys of arrays are not returned in the order which
they are added to the array, not really a problem, but interesting:
on makeArrayConvertToString
repeat with x =1 to 5
repeat with y = 1 to 5
put (word y of "a b c d e") into data[x,y]
end repeat
end repeat
put the keys of data
combine data with return and tab
put data into field 1
end makeArrayConvertToString
on convertStringBackToArray
put field 1 into myStr
put empty into field 1
split myStr with return and tab
put the keys of myStr into temp
put temp
wait 1 second
sort temp
put temp #keys returned in 'correct' order
end convertStringBackToArray
Result:
1,3
3,1
1,4
3,2
5,1
1,5
3,3
5,2
3,4
5,3
3,5
5,4
5,5
2,1
2,2
2,3
4,1
2,4
4,2
4,3
2,5
4,4
4,5
1,1
1,2
--
--
Rodney Tamblyn
Educational Media group
Higher Education Development Centre, 75 Union Place
University of Otago, PO Box 56, Dunedin, New Zealand
ph +64 3 479 7580 Fax +64 3 479 8362
http://hedc.otago.ac.nz ~ http://rodney.weblogs.com
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.