13.07.2015 Views

Turbo Basic

Turbo Basic

Turbo Basic

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

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

_ •. --------------------",<strong>Turbo</strong> <strong>Basic</strong>r=="------~ UitG: HYFI RST. BAS Li ne 1 Co 1 1 I nsert I ndent TabTrace.-------lIessa,e------'1'---1 ..----,1_Fl-Help Fl-Save F3-Hew IS-ZOOM F6-Hext F7-Beg Blk F8-End Blk SCIOLL-Size/Move''-_._-------------------/Figure 2-2 Blank Editor ScreenThose of you experienced with WordStar or some other program that uses itscontrol sequences, such as the SideKick® Notepad, will find <strong>Turbo</strong> <strong>Basic</strong> editing abreeze. Those of you not familiar with this editor should refer to the quick reviewsection earlier in this chapter, "Editor Survival Kit." (If you find you still need moreinformation, refer to the section in Chapter 3 entitled "The <strong>Turbo</strong> Editor.")Now type in the program MYFIRST that follows this paragraph. Type as preciselyas possible, because <strong>Turbo</strong> <strong>Basic</strong> can>t do anything other than what you tellit. Some of you may notice a Haw in this program -leave it in; we'll explain whylater.WHILE -1FOR n = 1 TO 8READ a$PRINT a$ " u;NEXT nPRINTRESTOREWENDDATA Presenting, <strong>Turbo</strong> <strong>Basic</strong> --, The, Fastest, BASIC, on, EarthWhat makes this program look different from BASIC programs you've seen inthe past is its lack of line numbers.Line numbers are an integral part of both the editing and execution of InterpretiveBASIC programs. However, since <strong>Turbo</strong> <strong>Basic</strong> has a built-in screen editor, andsince it's a compiler, line numbers are so much excess baggage. Yet, <strong>Turbo</strong> <strong>Basic</strong> isopen-minded on the subject. If you like, you can number every line. Or every thirdline. In order or backward. Or you may choose to number only those lines that arethe target of a GOTO or GOSUB. Better yet, you can use named labels.Touring <strong>Turbo</strong> <strong>Basic</strong> 19

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

Saved successfully!

Ooh no, something went wrong!