Quantcast
Channel: AutoHotkey Community
Viewing all articles
Browse latest Browse all 579

Ask for Help (v2) • Issue with Building an Array Using a Loop

$
0
0
Hello everyone,

I've been trying to build an array using a loop, but I keep encountering an error: "Invalid index." Here's how my loop looks like:

CODE:

#Requires Autohotkey v2.0
#SingleInstance Force


Ier := []
Aer := ["a", "b", "c", "d", "e", "f","g","h"]
Loop 8
{

Ier[A_index] := []
Ier[A_Index].Push(Aer[A_index])
}

MsgBox Ier[2][1]




Could you please help me identify what I'm doing wrong?

My array should look like this at the end

CODE:

Ier[[a],[b],[c]]


Thank you in advance.

Statistics: Posted by Loop — Today, 17:23



Viewing all articles
Browse latest Browse all 579

Trending Articles