Anonymous

Example TR-DOS Basic file: Difference between revisions

From Sinclair Wiki
Line 2: Line 2:


==Basic file listing==
==Basic file listing==
  10 DIM a$(10(10.0),5(5.0))
  10 DIM a$(10,5)
  20 DIM b(2(2.0),3(3.0))
  20 DIM b(2,3)
  30 FOR a=1(1.0) TO 10(10.0)
  30 FOR a=1 TO 10
  40 LET a$(a,3(3.0))="x"
  40 LET a$(a,3)="x"
  50 LET a$(a,4(4.0))="y"
  50 LET a$(a,4)="y"
  60 LET a$(a,5(5.0))="z"
  60 LET a$(a,5)="z"
  70 NEXT a
  70 NEXT a
  80 LET x=10(10.0)
  80 LET x=10
  90 LET r$="test string"
  90 LET r$="test string"
  100 RANDOMISE USR 15619(15619.0): REM : SAVE "basic"  LINE 300
  100 RANDOMISE USR 15619(15619.0): REM : SAVE "basic"  LINE 300
90

edits