2d arrays Topic is solved

Get help with using AutoHotkey and its commands and hotkeys
Posts: 61
Joined: 03 Mar 2020, 20:06

2d arrays

24 Apr 2020, 21:56

I was reading the ahk documentation and it said that you could make an array of rows, and each array of rows holds in array of colums which mexes sence to me, but I didn't see any examples on how to do this. Can someone give me an example of a 2d array which stores values and are retrievable in a 4 by 4 grid? Thanks for your help.

I found this somewhere but don't under stand what it is and how i can make it be like a grid that stores data

Code: Select all

Arr := [[1],[2],[3]]
MsgBox % Arr.1.1 "`n" Arr.2.1 "`n" Arr.3.1
Posts: 61
Joined: 03 Mar 2020, 20:06

Re: 2d arrays  Topic is solved

24 Apr 2020, 22:21

Arr := [[1, 2, 3, 4],[1, 2, 3, 4],[1, 2, 3, 4]]

MsgBox % Arr.1.1 "`n" Arr.2.1 "`n" Arr.3.4

i understand now, i just didn't realize you can add elements inside those mini bracket things.

Return to “Ask For Help”

Who is online

Users browsing this forum: AHKStudent, Bing [Bot], blue83, Google [Bot], superpeter, thebbandit and 33 guests