17.07.2013 Views

GWBASIC User's Manual

GWBASIC User's Manual

GWBASIC User's Manual

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

GW-BASIC <strong>User's</strong> Guide<br />

moves the characters following the cursor to the right making room for the new<br />

information.<br />

● Adding to or truncating characters at the end of the program line.<br />

If you have changed more than one line, be sure to press RETURN on each modified line. The<br />

modified lines will be stored in the proper numerical sequence, even if the lines are not updated<br />

in numerical order.<br />

Note<br />

A program line will not actually have changes recorded within the GW-BASIC program until the<br />

RETURN key is pressed with the cursor positioned somewhere on the edited line.<br />

You do not have to move the cursor to the end of the line before pressing the RETURN key. The<br />

GW-BASIC Interpreter remembers where each line ends, and transfers the whole line, even if<br />

RETURN is pressed while the cursor is located in the middle or at the beginning of the line.<br />

To truncate, or cut off, a line at the current cursor position, type CTRL-END or CTRL-E, followed by<br />

pressing the RETURN key.<br />

If you have originally saved your program to a program file, make sure that you save the edited<br />

version of your program. If you do not do this, your modifications will not be recorded.<br />

4.3 Special Keys<br />

The GW-BASIC Interpreter recognizes nine of the numeric keys on the right side of your<br />

keyboard. It also recognizes the BACKSPACE key, ESC key, and the CTRL key. The following keys<br />

and key sequences have special functions in GW-BASIC:<br />

Key Function<br />

BACKSPACE or CTRL-H Deletes the last character typed, or deletes the character to the<br />

left of the cursor. All characters to the right of the cursor are<br />

moved left one position. Subsequent characters and lines within<br />

the current logical line are moved up as with the DEL key.<br />

CTRL-BREAK or CTRL-C Returns to the direct mode, without saving changes made to the<br />

current line. It will also exit auto line-numbering mode.<br />

CTRL-CURSOR LEFT or CTRL-B Moves the cursor to the beginning of the previous word. The<br />

previous word is defined as the next character to the left of the<br />

cursor in the set A to Z or in the set 0 to 9.<br />

file:///C|/Documents%20and%20Settings/Lorenzo/Desktop/GW%20Basic/Chapter%204.html (2 of 6)28/03/2004 21.28.57

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!