=== TRANSMISSION OF FILE NOW PROCEEDING === *-> PC\PAD.............DEMO FILE..........TOP LEFT PAGE +---------------+---------------+ On the left is the standard control table for We have now discussed BASIC editing, window movement, and <-* | Row/Column Instructions: | spreadsheet instruction program ROWCOL.BAS. text manipulation. The remaining topics are programming of the Welcome to PC\PAD. As indicated on the data line at bottom, |1st Cell Line #: 10 | Its contents, as set by you, tell the program wordsheet, and disk/printer output. Because PC\PAD allows you are looking at a copy of lines 0-22 and columns 0-4 of the |1st Cell Col. #: 6 | what row/col totals to form. It presently programming of the wordsheet in a high-level language (BASIC), DEMOPAD wordsheet. On first encounter, you should find the |Number of Lines: 10 | points to the Table below. To test, press the possibilities (for example for the wordsheet to carry on a blinking double-underline cursor located in the upper left corner |Number of Col's: 2 | [F2], and type: rowcol to the filename dialog with you, or even to coordinate a treasure hunt across of the screen. The first thing to do is to move it around on the +---------------+---------------+ prompt. This sets up the row/col sums and its expanse) are probably larger than with a conventional screen, using the arrow keys on the right hand side of the key- allows you to spreadsheet. Because the speed of a response is probably slower, board. If you mess up the screen (this can be done with the Income Worksheet Mr. Jones Mrs. Jones222222222222222 update those the programmed instructions (say to update a set of row/column cursor keys by running off the right edge of the screen), don't +---------------+---------------+---------------+---------------+ sums based on totals) are only invoked upon request, by pressing [F2], the worry. As long as you don't press Enter (which loads the cursor | Net Salary| 10302| 8168|000000000000000| any new column Computation function. screen line back into the working file), you can recover the old | FICA tax| 3667| 2311|000000000000000| entries in the When [F2] is first pressed, the filename for the screen by pressing the [F1] key on the upper left corner of the | Witholding tax| 6211| 4211|000000000000000| future just by instruction program (which will be chain-merged into lines keyboard (the View window function). |Interest Income| 121| 22|000000000000000| pressing [F2] 10000...) is requested. A prototype program (ROWCOL.BAS) To review what other function keys do, press backslash and | Dividends| 4| 54|000000000000000| again. which reads numbers from column 6, lines 2-5 of the wordsheet then [F1], as indicated on the data line below. These [F1] |Business Income| 45| 0|000000000000000| to decide which row/column sums to form, is setup to the left functions, as well as the window movement key functions (using | Yard Sales| 0| 26|000000000000000| When you are in columns 5-9. To get there, figure out which function key [F3] through [F6]), make no file changes and hence can be invoked | Poker| 0| 266|000000000000000| finished here, will move you left (look at the keylist below, or use \[F1]). freely when needed. The data line below will keep you informed | Bingo| -32| 0|000000000000000| follow the The trip requires you to move 11 half-columns left. concerning the file location of the current window on screen. | Football Pools| 0| 45|000000000000000| dotted line ================================================================== | |222222222222222|000000000000000|000000000000000|000000000000000| for more........ /------> If you can now see the asterisk and arrow in the upper For example, press backslash and then [F4]... +---------------+---------------+---------------+---------------+ . | right corner of the screen, then the DEMO continues at the top of | . | this screen. If not, another backslash [F3] should get you there. Voila! Your window onto the wordsheet has moved down 20 . | lines. . | ===================The BASIC editing functions=================== . \-------------------------\ Many modifications to the file itself can be carried out . | using the BASIC editor commands, documented on pp. 2-13 through ................................... 2-31 of the IBM BASIC Manual (2nd Edition, ver. 1.1). For | . example, move the cursor down to each of the following lines and | . do as suggested, pushing Enter after each line change. /-> So far so good. Let's continue this movement up | . | and right by again pressing backslash [F3] and | . Dear ___, insert your name after the word "Dear". | backslash [F6]. Ignore the dotted line, and follow | . | the dashed one.---------------------------------------/ . Delete the #%!@$*&! expletive in this sentence. | . | . Place 2 dots over this letter o using the Alt-148 sequence. | . | . As mentioned in section IV of PC\PAD.DOC, one ASCII character | . (nominally "\") is assigned control character status. The first | . (and only first) backslash occurring in an Entered line is fair / . game as part of a command, so their use in text requires care. / . ...Press backslash, [F4] again to continue... / The backslash [F2] key allows to you alter 2 important filenames: A whole zoo of other functions, mostly for cursor movement, are / the working filename for disk output (shown on the data line below) also available through the BASIC editor. / and the filename for the spreadsheet instruction program. After [F2] / is pressed, the prompt lists the present name for each file. A return =======================Programmed Functions====================== / (or Enter) will leave that name unchanged. Use that option now to set Move the cursor to the line above, press [F7],return (Yank), / the working filename to something other than demopad (e.g. demopad.j), then [F8] (Put). Note that you have a way to replicate the line. /--> Here you are, now moving away from so that we don't copy over the original DEMOPAD file if we hit [F10]. In fact, you can move the cursor to any place on the wordsheet | the left edge of the word sheet. Notice Once this is done, it is safe to press the [F10] (Save) key. and insert a copy of that line! | on the location listings below that you Clicking of the disk drive should tell you that a magnetic copy is To get rid of extra copies of that line, press backslash | are viewing columns 4-8, and not columns being made, under the filename set above. [F7],return (Destructive Yank/Delete) on each. Just like that, | 0 to 4 as has previously been the case. If you have an IBM printer (protocols are set for the one without they go away. Deleted lines are stored in the Put memory, also. | Let`s continue this process, by again GRAFTRAX, although it may make no difference), you can also test the Print To add text, for example above this line, move the cursor Note: | pressing backslash [F3] and backslash [F6], routine (backslash+[F10]) with this file. To print the whole wordsheet there and press backslash [F8] (Line-Insert). Almost magically, You may ^ thus following the dashed diagonal line. requires 2 passes. To print the left half, answer all questions with the cursor splits into two, opening up an insertion line. While need to | return (Enter) except for characters/inch, to which you should respond the cursor is so split, you can only add text on the insertion use [F4] | with s (for small). To print the right half, do likewise except also line. You can also continue to Enter line after line until the to put / specify 8 (instead of the assumed 0) after "columns from:". This addition is complete. Invoking any of the other programmed new text / will print columns 8 to 15 instead of columns 0 to 7. functions (such as [F1]) will close up the present (unEntered) up on / Please look over the more systematic documentation in file PC\PAD.DOC insertion line, and return to you full-screen editing ability. screen. / as well. When you are done roaming around on the wordsheet, you can return to the Disk File Menu by pressing backslash twice, q, & Enter. Finally, to make the right-margin here line up with those of the other paragraphs, move the cursor to the first line in this paragraph, and press [F9] (Justify). To the questions at the bottom of the screen, reply 65,Enter,Enter. This sets a 65 character linewidth, and requests that only one line be justified at a time. The first line should at that time be rearranged to take up 65 characters. Continue with the remaining lines in the paragraph. The instructions to Justify can be changed at any time by pressing backslash [F9]. To continue with the DEMO, we now require 4 keystrokes: to move up and right on the wordsheet, press backslash [F3] and backslash [F6].  === END OF FILE === keystrokes: to move up and right on the wordsheet, press backslash [F3] and backslash [F6].  === END OF FILE ===