home *** CD-ROM | disk | FTP | other *** search
-
- D A Y B A S E I I I
-
- A Three-Year Calendar
-
- by Dick Heckert
-
-
- IMPORTANT NOTE: DAYBASE III automatically writes a RELative file to the disk
- in the current drive as soon as you enter a year, month and date, as you are
- asked to do at the beginning of the program. We recommend that you copy
- DAYBASE III to a blank, formatted disk before using. If you must see what
- it's like from LOADSTAR, don't enter any date past 1-20-1993. The RELative
- file created on the disk will be about 20 blocks long, which is just about
- the blocks free on Side Two. If you use a later date, you'll get a blinking
- drive light, a hung program, and a 0-block RELative file.
-
-
- I needed a way to remind myself when I had an appointment with the
- doctor and the old Print Shop calendar wasn't doing the job. I had been
- working with RELative files for the past few months, so it made sense to use
- this file method for a calendar program where I would be adding data one day
- at a time, and where fast, random access was essential. Hence, DAYBASE III,
- the three-year calendar on a disk.
-
- Just put DAYBASE III as the first program on your fastest disk drive --
- it really flies in RAMLink -- and whenever you need to check an appointment
- or birthday, just press SHIFT-RUN and there it is.
-
- First is the INPUT mode where you are asked for the year. You can
- enter 1993, 1994, or 1995 (or just 93 or even just 3). Next, you enter the
- number of the month and immediately the calendar for that month is shown on
- the screen. The holidays and Sundays are shown in yellow. Next, enter the
- date, and that record is brought from the disk file so you can read or edit.
-
- Copy DAYBASE III to a disk with plenty of blocks free. A three-year
- calendar takes 858 blocks of disk space not counting the program, so if you
- have a 1541 you will need to divide up your calendar years on both sides of
- the disk. I recommend you choose 1993 first, 12 (December) next, and 31 for
- the date, but only on a disk with hundreds of free blocks -- not on LOADSTAR
- 128. The disk operating system will then block out the entire file for 1993
- in continuous records. You can then repeat for 1994 and 1995, with 1995
- going on the back of the 1541 disk or on another disk. The way it works is:
- Whatever date you enter, the RELative file will be built for the first day
- of that year up to that date, so you may as well use December 31 and have
- the whole year created right away. That way the RELative file won't have to
- be extended again for that year.
-
- If there is no data in the record for a date, you will see a little
- checkerboard, character 255, that the disk operating system puts there to
- indicate a new record. Anytime you access a record for the first time, it
- will be there.
-
- You enter, or EDIT, data by pressing E. There are six lines with a
- maximum of 30 characters per line available. I've used a free-form entry
- window -- the kind Fender likes -- which allows you to move the cursor
- anywhere within the area. You may use INSerT, DELete, the CRSR keys, even
- CLeaR and HOME. The ESCape codes work, too. This way you can get the
- window looking just like you want, then press F1 when finished. Notice that
- there is no word-wrap, but with all of the editing power the C-128 gives
- you, you won't need word-wrap. Remember, to get out of the insert mode, use
- ESC"o".
-
- Pressing + or - will advance to the next or last date in the current
- month. To move to another month or to another date, press ESC (the escape
- key at the top left of the keyboard) and enter the new year, month and date.
-
- You can print out the coming week of appointments by pressing P in
- command mode. First, move to the month of interest, and then press P.
- Enter the starting date, set your printer to at the top of the page and
- ready to receive CBM PETASCII. Press any key and the 7 day calendar will be
- printed. You can start on Monday, Wednesday or whenever. You can run into
- the next month, or even into the next year (Dec 25, 1993 to Jan 1994). If
- you start in late December 1995, it will stop printing at December 31. When
- there is no data in the record for a date except the DOS character, the
- printer will print the date and give you six blank lines for your notes. Be
- sure to erase or add data on the first line of a record so the printer will
- not skip to the next date.
-
- DH
-
- FENDER'S POSTSCRIPT: DAYBASE III is not fancy but it's fast and does the
- job very well. I have it on my RAMLink and everything is practically
- instantaneous. The Run It program was compiled with the Abacus 128 compiler
- but the BASIC source code is on the disk, "daybase iii.bas". Feel free to
- study the code and even change it...except for the copyright box, of course.
-
- **** R - Run RETURN - Menu ****
-