Loops/Foreach: Difference between revisions
Content deleted Content added
Line 659: | Line 659: | ||
DEF AList:POINTER |
DEF AList:POINTER |
||
⚫ | |||
AList=ListCreate() |
AList=ListCreate() |
||
'add items to the list |
'add items to the list |
||
⚫ | |||
FOR X=0 TO 10 |
FOR X=0 TO 10 |
||
POINTER Temp=ListAdd(AList,NEW(INT,1)) |
POINTER Temp=ListAdd(AList,NEW(INT,1)) |
||
Line 684: | Line 683: | ||
AnArray=0,1,2,3,4,5,6,7,8,9,10 |
AnArray=0,1,2,3,4,5,6,7,8,9,10 |
||
FOR X= |
FOR X=0 TO 10 |
||
PRINT AnArray[X] |
PRINT AnArray[X] |