Array key paths

Mark Wieder mwieder at ahsoftware.net
Tue Nov 12 17:38:56 EST 2013


Monte-

Tuesday, November 12, 2013, 1:46:28 PM, you wrote:

> Apparently multi-dimensional array keys can be specified using a
> numerically indexed array as a path. Here's an example:

And the multidimensional array doesn't even have to be numerically
indexed - the split command creates a hierarchical index for the hash:

put "hello" into tTest["abba"]["zabba"]
put  "abba,zabba" into tPath
split tPath by comma
-- tPath is now
--   [1] : "abba"
--   [2] : "zabba"
put tTest[tPath] --> "hello"

-- 
-Mark Wieder
 ahsoftware at gmail.com





More information about the use-livecode mailing list