Multi-dimensional arrays, tutorial?

Malte Pfaff-Brill revolution at derbrill.de
Tue Aug 10 03:12:11 CDT 2010


Hi Hugh,

as of Rev 4 (if I recall correctly) you can store the whole array in a custom property, which you would need to set:

local tArray

put "malte" into tArray[1]["firstname"]
put "pfaff-brill" into tArray[1]["lastname"]
put "linus" into tArray[2]["firstname"]
put "pfaff" into tArray[2]["lastname"]

set the cAddressBook of this stack to tArray
save this stack

---

-- retrieve it

local tArray

put the cAddressBook of this stack into tArray
answer tArray[1]["firstname"]

Hope that helps,

Malte




More information about the use-livecode mailing list