HTBasic Help
×
Menu
Index

DATA Example

10    DIM Array(4)
20    DATA 1, 2, 3, 4, 5, "Hello user"
30    RESTORE   !Set pointer back to beginning of DATA statement.
40    CLEAR SCREEN
50    PRINT "Reading the data."
60    READ Array(*)   !Read in the numerics from DATA.
70    PRINT "The array: "
80    PRINT Array(*)
90    READ Str$       !Read in the string from DATA.
100   PRINT "and the string was:",Str$
110   END