RosettaCodeData/Task/Associative-array-Creation/LiveCode/associative-array-creation-1.livecode
2023-07-01 13:44:08 -04:00

10 lines
358 B
Text

command assocArray
local tArray
put "value 1" into tArray["key 1"]
put 123 into tArray["key numbers"]
put "a,b,c" into tArray["abc"]
put "number of elements:" && the number of elements of tArray & return & \
"length of item 3:" && the length of tArray["abc"] & return & \
"keys:" && the keys of tArray
end assocArray