Code: Select all
Define NewList TestList.i()
Define Var.i
AddElement(TestList()) : TestList() = 1 : AddElement(TestList()) : TestList() = 2 : AddElement(TestList()) : TestList() = 3
Var = 123
ForEach TestList()
Debug TestList()
Next
Debug Var
Debug "-------------"
Define NewList TestList.i()
Define Var.i
ForEach TestList() ; Now Empty
Debug TestList()
Next
Debug Var ; Still there
