I have this code, it works fine.
Code: Select all
List =
(
Section = 1
Section = 2
Section = 3
Section = 4
Section = 5
Section = 7
)
Loop, Parse, List, `n`r
Array := StrSplit(List, "`n")
MsgBox, % Array.5
Esc::ExitApp
Code: Select all
List =
(
Section = 1
Section = 2
Section = 3
Section = 4
Section = 5
Section = 7
)
var := 5
Loop, Parse, List, `n`r
Array := StrSplit(List, "`n")
MsgBox, % Array.var
Esc::ExitApp