By: 2J3 Use: Versatile Database Program name: DBase Associated program/file/s: Dbdat DBsortLanguage: Basic General info: A database that I wrote for a friendfor his Commodore 64. He wanted to keepa record of his dives. There are 11 field headings in thedatabase. These headings are easilyaltered, so you can tailor it to suityour own needs. If you want to change the number ofrecords in the database, then alter thevalue of Q%. If you alter the value ofQ%, the database will allow for thiswhen loading in previously saved data. Here follows a feeble excuse: I wrote this program for a Commodore 64which has no PROCedures of course. Theprogram uses GOSUB and GOTO which Inormally avoid. Instructions: CHAIN"DBase" The main menu presents you with record1. There are a number of singlekeypress choices. They are: (F)orward Move to records. (B)ackward with these (G)oto commands (A)dd. Add a new record. (E)dit. Edit the present record.Enter the code of the item you wish to edit. Note that if you enter an empty string for the date, you in effect delete that record. (L)oad. Load a previously saved data file and field headings. The program will give you the optionto increase the number of records in the database if Q% is largerthan the number of records in the previously saved file. (S)ave. Save the present data file and field headings.(P)rinter. Toggle printer on/off. (U)tils. This is a sort routine. The program "DBsort" is loaded. Follow the prompts to sort by any of the fields. Before pressing U, SAVE your data using option Sas all data in memory will be lost. To alter the field headings, change thedata statement in the last lines of theprogram accordingly. Remember to ensurethat there are 11 headings. The field headings in the database aresaved and loaded with any of the datathat is entered. This means that youcan have several different databasesall of different sizes which will allrun from the same program. By: 2J3 Use: Test/revision database Program name: selftes Associated program/file/s: none Language: Basic General info: I wrote this program at the request ofsomeone who is new to computers andwanted to be able to enter a series ofquestions and answers into a databaseso that she could have the program askthe questions for revison. Instructions: Firstly, put the program SELFTES onto ablank disc if you are using DFS, thisis to avoid CAN'T EXTEND errors whenthe data is saved. The very first thing that the programasks for is a name of the data file toload in. If you are running thisprogram for the first time there willbe no data file, therefore just pressRETURN without entering a name. The menu then appears. There are 6choices, select one of these choices: (L)oad. After confirmation Y/N, the program starts from scratch. Enter a filename and previously saved data will be loaded. (S)ave. Save the present data to disc. (A)dd. Add a new question and answer. Enter the question and answer. Separate the question from the answer with two stars ie ** You would make a typical entry like this: How old am I?**37 Then press RETURN. (E)dit. Edit a question and answer.The program will ask for the number of the question and answer. Enter the number.Then enterthe question and answer in the same way as when using the ADD option. Pressing RETURN without entering anything will delete that question.You can use cursorediting to copy parts of the original question and answer if you wish. (R)ead. This option allows you to see all the questions and answers that you have entered so far. You are given the option to send the output to your printer.(T)est. Commence a test. You can have all the questions asked in sequence from 1 towherever you may have reached in entering the data. Or you can have the questions asked at random. Enter "S" for sequential or"R" for random. If you get more than 50% ofthe question correct you score 1 point. If you get the question 100% correct, you score 2 points. Press ESCAPE at any time toquit. Finally, if you want to change thenumber of questions in the database,alter Q% at the very start of theprogram before starting to enter data.Once you have started entering data youcannot change the number of questionsfor that file. The program saves andloads Q% with the data, thereforewhenever you load in data, Q% will beset correctly for that particular data. Unfortunately backing up tape can be adifficult job. There are so manyponderables. I.e. file name lengths arelonger than allowed in DFS, so thisprogram names them from A to Zaccordingly and gives you theopportunity to save a record of thefile name and re-named filename. Even if you can manage to handle that,sometimes a program will insist oncalling TAPE again. If you can alterthis, and have a model B, you may findproblems with the program overwritingDFS itself and making the whole thingseem pointless. Instructions: When the program is run it firstly willask you if you want a record of loadsand saves to be sent to the printer.This is advisable because the programre-names files to get around problemscaused by tape file names sometimes. Next the program gives you theopportunity to select the first savefile name. Enter an upper case letterof the alphabet. As files are copiedthe letter goes up by one. When Z isreached it starts at a1 to z1. After z1is passed, it starts at A again. The program will go on for ever. Soswop tapes and discs as needed. Theprogram will halt when a disc is full,so keep an eye on the number of filesbeing transferred. When a copy is finished. Compare thenames on the printout and *RENAME thefiles accordingly. Here are some commonproblems you will have to sort out: Several names all the same. Names too long Odd characters in the name. No name. Instructions to *RUN, *LOAD or CHAIN with no file name. Several switches back to TAPE Files overwriting a filing system from &E00 Total incompatability.