Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- a. 1次元配列の組み合わせで実現
- clrs := Array()
- clrs.Push(["ff0000", "00ff00", "0000ff"])
- clrs.Push(Array("a", "b", "c"))
- MsgBox clrs[2][1]
- b. Mapで実現
- clrs := Map()
- clrs["1,1"] := "ff0000"
- clrs["1,2"] := "00ff00"
- clrs["1,3"] := "0000ff"
- clrs["2,1"] := "a"
- clrs["2,2"] := "b"
- clrs["2,3"] := "c"
- MsgBox clrs["2,1"]
- このMapは文字列"1,1"などをkeyとしているのでこの配列に期待する動作によっては
- 配列っぽく動かないかもしれません
Add Comment
Please, Sign In to add comment