The interpreter editor has a command line interface. You can use it to modify and run your programs, or if you prefer, you may use an external editor to create or modify them.
Usign an external editor, program files can be saved in ASCII format and at a later time, executed using nuBASIC interpreter, for example by using the command:
The program you
An advanced editor which is part of an Integrated Development Environment for Windows, able to recognize the nuBASIC syntax, is
Using the interpreter editor you can
edit or debug nuBASIC program lines as you enter them, or after they
have been saved in a program file.
You can make changes to the information
in a line by positioning the cursor where the change is to be made,
and by doing one of the following:
Typing over the characters that
are already there by pressing the INS key on the number pad.
Deleting characters to the left of
the cursor, using the BACKSPACE key.
Deleting characters at the cursor
position using the DEL key on the number pad.
Inserting characters at the cursor
position. This moves the characters following the cursor to the
right making room for the new information.
Adding to or truncating characters
at the end of the program line.
Recalling commands, using UP and
Clearing current command line
using ESC key
Displaying command history using
F7 key (Windows only)
Clearing command history using
Alt+F7 keys (Windows only).
Searching for command beginning
with <chars> by typing <chars> and pressing F8 key
Selecting a command by number
using F9 key (Windows only)
If you have changed a line, press Return and the modified line will be stored in the proper numerical sequence depending on number you have assigned to the line.
To modify an existing line, you may recall it using UP or DOWN keys and typing modification directly on the line text, then pressing ENTER you will store it.
If you don’t specify a line number, the statement will be executed immediately after pressing Return and will not be stored in the program.
For i%=1 to 10: Print "Count ";i%;" "; : Next
Count 1 Count 2 Count 3 Count 4 Count 5 Count 6 Count 7 Count 8 Count 9 Count 10
Editing existing files
After you have entered your program and
saved it, you may discover that you need to make some changes.
make these modifications, use the List statement to display the
program lines that are affected:
- Reload the program using Load command.
- Type the List command.
- Type the line number, or range of numbers, to be edited.
20 Line 400,0, 400, 800, &hff
30 Line 0,300, 800, 300, &hff
40 Line 0,0,0,1, &hff
50 old_x = 0
60 old_y = 0
70 x = -400
90 If y>600 Then End
90 If y>600000 Then End
90 If y>600000 Then End
See also Line numbering