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 />

until the RUN command is entered.<br />

In other words, calculations are done under the direct mode. Programs are written under the<br />

indirect mode.<br />

To display the entire program again, type the LIST command and press the RETURN key:<br />

list<br />

Your screen should look like this:<br />

Ok<br />

10 x=3<br />

20 print 2+x<br />

run<br />

Ok<br />

5<br />

Ok<br />

list<br />

10 X=3<br />

20 PRINT 2+X<br />

Ok<br />

You'll notice a slight change in the program. The lowercase letters you entered have been<br />

converted into uppercase letters. The LIST command makes this change automatically.<br />

3.3 Function Keys<br />

Function keys are keys that have been assigned to frequently-used commands. The ten function<br />

keys are located on the left side of your keyboard. A guide to these keys and their assigned<br />

commands appears on the bottom of the GW-BASIC screen. To save time and keystrokes, you<br />

can press a function key instead of typing a command name.<br />

For example, to list your program again, you needn't type the LIST command; you can use the<br />

function key assign to it, instead:<br />

● Press the F1 key.<br />

● Press RETURN.<br />

Your program should appear on the screen.<br />

To run the program, simply press the F2 key, which is assigned to the RUN command.<br />

As you learn more commands, you'll learn how to use keys F3 through F10. Chapter 4, "The GW-<br />

BASIC Screen Editor," contains more information about keys used in GW-BASIC.<br />

file:///C|/Documents%20and%20Settings/Lorenzo/Desktop/GW%20Basic/Chapter%203.html (3 of 5)28/03/2004 21.28.59

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

Saved successfully!

Ooh no, something went wrong!