Line Text : .X%A_Index%
Error: Ambiguous or invalid use of "."
How to make the loop work? The real class of my code has many variables. I need to use the loop.
Test code:
Code: Select all
T := New TestClass(1,2,3,4,5)
T.Test()
Class TestClass
{
_New(X1,X2,X3,X4,X5)
{
This.X1 := X1
This.X2 := X2
This.X3 := X3
This.X4 := X4
This.X5 := X5
}
Test()
{
Loop 5
Msgbox % This.X%A_Index%
}
}