I combine a string with a variable content, to assign a new variable (kind of array), like this: New_Variable:= %Variable%String.
It works, except when I make it in a label that's inside a function.
NewVar()
F9::ExitApp
Return
NewVar()
{
Static TestVar,Index
Index= Test
TestVar= {esc}
VarToMake:= %Index%Var ; -> content of VarToMake is {esc}
MsgBox, 0, TestVar= %TestVar%, 1: VarToMake= %VarToMake%
SetTimer, TimerLabel, 1000
Return
TimerLabel:
SetTimer, TimerLabel, off
VarToMake:= %Index%Var ; identical expression, but different result (empty)
MsgBox, 0, TestVar= %TestVar%, 2: VarToMake= %VarToMake%
Return
}It's only when jumping to the label that the empty VarToMake variable occurs, not when coming back to the function in a normal way.




