home *** CD-ROM | disk | FTP | other *** search
- ╔═══════════════════════════════════════════════════════════╗
- ║ Lesson 1 Part 10.0 F-PC 3.5 Tutorial by Jack Brown ║
- ╚═══════════════════════════════════════════════════════════╝
- ┌─────────────────┐
- │ Loading Files │
- └─────────────────┘
-
- Here is yet another way to load the entire file, and it works even if
- the file is not currently open is to use the FLOAD command that we used
- before.
-
- FLOAD BANNER <enter> <--- This one requires the file name.
-
- Note: If the currently open file is not BANNER.SEQ but some other
- file say XXX.SEQ , then when the FLOADing above is finished
- the file XXX.SEQ will be restored as the currently open file.
-
- ┌────────────────────────┐
- │ **** Handy TIP **** │
- └────────────────────────┘
-
- A common mistake made by the novice is to repeatedly LOAD the same file
- several times while testing different load techniques as above or while
- reloading a corrected or modified version of a program under
- development. If you are getting a lot of ... " isn't unique " messages
- it is probably because you are loading multiple copies of the same file
- on top of one another. To empty the dictionary of the words previously
- loaded take one of the following approaches.
-
- To remove all of the words so you are back to the state when F-PC was
- started you should type:
-
- EMPTY <enter> <--- remove all words added since starting F-PC
-
- To remove all of the words in the BANNER program only you must FORGET
- the first word defined in the BANNER program. The first word in the
- BANNER program is CHAR-MATRIX , thus typing:
-
- FORGET CHAR-MATRIX <enter> <--- will remove CHAR-MATRIX and all the
- following words from the dictionary.
- This would be the best approach if you had added other words earlier
- that you still want to retain.
-
- ┌───────────────────────────┐
- │ Make Your Own Banner! │
- └───────────────────────────┘
-
- Enter the EDitor and open a new file MYBANNER.SEQ.
-
- Use the <ALT> N entry.... its the fastest.
-
- Type in the following definition, using the <enter> key to add new lines
- to the file as needed. The arrow keys can be used to move around, but
- you will not be allowed to move below the line containing the little up
- pointing triangle at the left edge of the screen, as this represents the
- end of the current file. YOURNAME must be no longer than 11 characters!
-
- : GREETING ( --- )
- DARK CR " HELLO" BANNER " FROM" BANNER
- 2 SECONDS " YOURNAME" BANNER ;
-
- Now that you have typed in or edited the above definition into the file
- MYBANNER.SEQ, leave the editor saving the text you have entered, by
- pressing SHIFT F10 to save the program. If you already have the file
- BANNER loaded/compiled you are ready to compile the file MYBANNER with
- your GREETING . Type:
-
- FLOAD MYBANNER <enter> <--- to compile your banner greeting
- GREETING <enter> <--- to execute your banner greeting
-
- ( ***** DID you load BANNER.SEQ first??? )
-
- ╓────────────────╖
- ║ Problem 1.6 ║
- ╙────────────────╜
- The banner program uses the # character to form the block letters. Study
- the banner program and find where the change(s) must be made so that the
- block letters come out using the 177 character that was used to make the
- word WHITE in our checker board program. While your at it find out what
- you must do to stop the demo from running when the program is compiled.
- First one to report back here with exactly what must be changed wins a
- prize! Also, What will the following do if typed at the dos prompt?
-
- C:\FPC> F BANNER OK FLOAD MYBANNER GREETING BYE <enter> <--- Whatsitdo?
- Sorry, that's the wrong answer. It doesn't do what I thought either!
-
- ┌────────────────────────────────────┐
- │ Please move to Lesson 1 Part 11.0 │
- └────────────────────────────────────┘
-