Original Author Paul Laughton, 2011
Page 92
De Re BASIC!
Read.data is equivalent to the DATA statement in Dartmouth Basic.
Read.next <var>, ...
Reads the data pointed to by the internal NEXT pointer into the next variables. The NEXT pointer is
initialized to "1" and is incremented by one each time a new value is read. Data values are read in the
sequence in which they appeared in the program Read.data statement(s).
The data type (number or string) of the variable must match the data type pointed by the NEXT pointer.
Example:
Read.next a,b,c,c$
Read.next d$,e$
Read.next is equivalent to the READ statement in Dartmouth Basic
Read.from <nexp>
Sets the internal NEXT pointer to the value of the expression. This command can be set to randomly
access the data.
The command Read.from 1 is equivalent to the RESTORE command in Dartmouth Basic.
Debug Commands
The debug commands help you debug your program. The Debug.on command controls execution of all
the debug commands. The debug commands are ignored unless the Debug.on command has been
previously executed. This means that you can leave all your debug commands in your program and be
assured that they will not execute unless you turn debugging on with Debug.on.
Debug.on
Turns on debug mode. All debug commands will be executed when in the debug mode.
Debug.on also enables a simple debugging aid built into BASIC!. If debug is on, and your program
entered a loop but did not exit the loop cleanly, you will get a run-time error. See the looping commands
(For, While, and Do) for details.
Debug.off
Turns off debug mode. All debug commands (except Debug.on) will be ignored. When your program
exits, the broken-loop checks are not performed.
Debug.echo.on
Turns on Echo mode. Each line of the running BASIC! program is printed before it is executed. This can
be of great help in debugging. The last few lines executed are usually the cause of program problems.
The Echo mode is turned off by either the Debug.echo.off or the Debug.off commands.