RosettaCodeData/Task/Arrays/AutoHotkey/arrays-2.ahk

12 lines
248 B
AutoHotkey
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
arrayX0 = 4 ; length
arrayX1 = first
arrayX2 = second
arrayX3 = foo
arrayX4 = bar
Loop, %arrayX0%
Msgbox % arrayX%A_Index%
source = apple bear cat dog egg fish
StringSplit arrayX, source, %A_Space%
Loop, %arrayX0%
Msgbox % arrayX%A_Index%