(like this?)
Code: Select all
#NoEnv
#SingleInstance force
aTst1 := []
aTst := tstFunc("10")
for k, v in aTst
aTst1.push(aTst[A_Index])
aTst := tstFunc("100")
for k, v in aTst
aTst1.push(aTst[A_Index])
; Show the result
MsgBox ,
( LTrim
% aTst1.count() "
" aTst1.1 "
" aTst1.2 "
" aTst1.3 "
" aTst1.4
)
ExitApp
tstFunc(Value)
{ Result :=[]
Result.1 := "Result1," Value * 5
Result.2 := "Result2," Value * 10
Return Result
}