This program only works if the array is global.
Is this supose to work like this?
Is this supose to work like this?
Code:
SUB Test
DIM T(3) AS FLOAT => {0.5,1.5,2.5,3.5}
PRINT
FOR i = 0 TO 3
PRINT "T(";i;")= ";T(i)
NEXT i
T(0) = 0.5
T(1) = 1.5
T(2) = 2.5
T(3) = 3.5
PRINT
FOR i = 1 TO 3
PRINT "T(";i;")= ";T(i)
NEXT i
PAUSE 0
END SUB
Test