This also works, so it must be something to do with your for next loop...
Type test Field omg End Type t.test = New test t\omg = 1 t.test= New test t\omg = 2 t.test = New test t\omg = 3 t.test = New test t\omg = 4 t.test = New test t\omg = 5 t.test = First test PrintOMG(t.test) t.test = First test PrintOMG(t.test) t.test = First test PrintOMG(t.test) t.test = First test PrintOMG(t.test) t.test = First test PrintOMG(t.test) t.test = First test PrintOMG(t.test) WaitKey Function PrintOMG(t.test) Print t\omg t = After t Print t\omg t = After t Print t\omg t = After t Print t\omg t = After t Print t\omg t = After t End Function