Classic Computer Magazine Archive COMPUTE! ISSUE 48 / MAY 1984 / PAGE 10

Easy DATA Statements

Here is a one-liner that I have found very useful while programming many statements that are almost identical. Used in the direct mode it can yield a set of DATA statements that fill the screen. The program can just as easily use POKE, or REM statements, or any combination of these.

FOR X = 100 TO 300 STEP 10 :
  PRINT X "DATA" : NEXTX

Chuck Cole