Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Array FLOAT only works if global (solved)
#1
This program only works if the array is global.

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
Reply


Messages In This Thread
Array FLOAT only works if global (solved) - by zarsoft - 11-14-2023, 12:45 AM
RE: Array is global - by boriel - 11-14-2023, 10:14 AM
RE: Array is global - by zarsoft - 11-14-2023, 02:35 PM
RE: Array is global - by boriel - 11-24-2023, 10:37 PM
RE: Array is global - by zarsoft - 11-25-2023, 04:48 PM

Forum Jump:


Users browsing this thread: 3 Guest(s)