Split List into separate strings
Posted: 29 Nov 2022, 10:21
Hello,
I have this code, it works fine.
But when I change the number 5 in line #13 and try to define it from a variable, it does not work..
Any thoughts ?
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