13 UTILITY INFORMATION ------------------- This Pantry file gives information on the Application Keys which provide useful utilities to use with Pantry files. Press F1 and then 'a' to see a list of Application Keys. Use 'Esc' to go back to the Pantry file without performing the function. The file also includes information at the end as to how to change headings for some of the Pantry files which allow changes. Alt-F1 - Find Patterns This function is unique to the program, and you will not see it anywhere else. It helps you find and create your own patterns from you own input. For example, after you enter sufficient information in your recipes, you specify a keyword for the desired food, ingredient, date, etc. and the pattern creator here gives you all references to your keyword. You perform the function again and again to find patterns within patterns! This function finds patterns in a file and puts them into a file called 'pattern' for you to subsequently use. For example, you specify that you want all references to 'corn' in the file you are working on. Enter 'corn' as the first keyword. Then the function asks how many characters after the first character of the keyword you desire to capture. You must enter an integer less than 15,000 (no commas). Then the function asks how many characters to include before the keyword and again you must enter an integer less than 15000. The function then finds the keyword and includes in the 'pattern' file characters before the keyword and after the keyword per your specifications. Keywords are not relisted when they fall in the range you specify. This allows you to get all the nonrepetitive information about the keyword you seek. The function gets all references and following text for 'corn' in the file you have up. The search is exact; if you specify 'corn', you do not get 'Corn'. To get both references, do the function twice. The function appends data at the end of the existing 'pattern' file until you rename or delete the file 'pattern' to start over. You may also perform the function more than once with the same (or different) keyword using same or different files. The function appends the patterns any number of times so long as the total file length remains under 64K. You can use the function with any ASCII text file to pull off recipes you want as long as the source file is under 64K long. You can also use the function to cull recipes such as from Compuserve for ones you want. You may want to edit the pattern file to take out lines captured in excess of what you desire. (Ctl Y or F7 keys make this easy) You rename the file 'pattern' to save the data and start over (do not use an extension if you wish to work with it in the file section, e.g. "rename pattern. pattern1." in DOS). Within the program you select the 'pattern' file from the Pantry directory; then press F8 and enter 'pattern1' (or any name you want with no extension); then press F9 specifying the file 'pattern' to copy in selected parts or all of the pattern file; then press F10 to save the file 'pattern1'. Then use Alt F6 to delete the file pattern to start creating more new patterns. The file is put in the current directory as specified by you. If you have your files in a different directory, then you must copy the pattern file to your file directory in order to view and select it as you would other files. You may wish to use the Alt-F9 utility to do this. Delete the file 'pattern' (Use Alt-F6 utility) to just start over. (Although Alt-F6 will not work from the file you are currently in to delete this same file you are in). Alt-F2 - Transfer Alt-P Log - This function renames the log file created when you turn on the Alt-P log file function and capture information from the foods generator in section 3 (or elsewhere). Toggle the Alt-P function off before using. The log file (prolog.log) is renamed to any name you specify; use a name with no extension to have it show up automatically in the Pantry directory window. Use a name of comboXX to have correct headings match the numbers from section 3 for fiber, cholesterol, etc. (XX is any two numbers you give to retain many different copies of your runs). Alt-F2s clears prolog.log so that you can reuse it. You cannot let the prolog.log file get larger than 64K in order to view it in the Pantry. Alt-F4 - Allows you to change to any directory or drive. You do not get as much help for error messages since the help files are are in the main directory. If you use another directory a lot, copy the files food.hlp, prolog.err, and any graphics drivers to the other directory. Alt-F6 - Deletes a file (but not the same file you currently have up). You may use a fully qualified name. If you do not specify the name correctly, then the process just returns and no file is deleted. Alt-F7 - Delete all '.bak' files Whenever you use F8 and F10 to save a file using the auxiliary editor, a '.bak' file is created to store the copy of the file before any changes were made as an added backup protection. These files may accumulate and take up disk space, so we have this function which deletes ALL '.bak' files in the directory you specify. If you specify no directory, then all '.bak' files in the current directory are deleted. Many other applications create '.bak' files so you may use this function for these other applications as well if desired. Alt-F9 - Copy one or all files (answer 1 to copy a single file; 2 to copy all files in a directory (the process copies files with no extension since these system files change as you add data to them). This function allows you to easily backup or restore all your files so you have added protection. Also you can share you files with other Eatwell enthusiasts. Alt-F9 selection 2: The function copies all files (files with no extensions) in the directory or disk you specify to the directory and/or disk you specify. E.g. 'c:\food' for the from directory and 'a:' for the to directory copies your files to a disk in drive 'a' (do not enter quotes). If the files do not fit on one disk, the process copies all the files it can and then ends. You must then use the 'Alt-B' function to copy those files for which room did not exist to another disk where room exists. You get an error 1112 'Cannot write correct number of bytes to file' which is caused by a full disk. If a file is created with 0 bytes because of a full disk, then you must delete it using Alt F6 since the file will not work correctly with the program. Your original file data remains safe, and you must use Alt B to copy it to a disk with enough room. Copy selected files (Alt F9 selection 1): Copies one file you specify at a time from a disk or directory you specify to a disk or directory you specify. E.g. Copy from 'C:\food' brings up Pantry files (files with no extension) in directory 'C:\food'. Use arrow keys to move to the file you want to copy and press return to copy it to the disk and/or directory you specify. Use the F4 key to change the file mask; for example, to '*.txt' to copy a library file. Enter the disk and/or directory you wish to copy from and to and press return. Pressing return with no directory copies files from or to the current directory. Also if you just want to view the files in a directory, just press return with no directory or disk when asked to specify the 'to' and 'from' directory. After finishing viewing, then press 'Esc' to return to your Pantry file without copying any files. You may use F4 once the files are displayed and change the mask as desired; for example changing to '*.*' allows you to see all files. Alt-B - Show Date, Time, Disk Space, Free Memory Shows space available on the disk. Shows Free Memory: This comes in handy if you have large files and/or have lower computer memory (possibly from memory resident programs). Each time you bring in a file you use added memory. While you use a file, if you use the auxiliary file (F8) with a file of 64K in length you need 64K more memory. While using F8, if you use the F9 key to view another file which is 64K in length, the program requires an added 64K. The total added in this situation could amount to 128K additional required. Alt-D - Accesses DOS Puts you in the Dos interactive mode where you can run other programs. This process requires that the command interpreter (Dos: Command.com; OS/2: Cmd.exe) is accessible. In DOS if you install any memory resident programs while using Alt-D, you probably will NOT be able to return to the Eatwell system successfully since the memory resident program may take up required memory. In OS/2 you are probably ok doing just about anything. If you change the directory while in DOS (or OS/2), that directory remains in effect when you return to the program. Change Headings - Use F8 key and load file 'headcfg.dat'. Use the Ctl F10 key to enlarge the Auxiliary window. You may change any of the headings subject to the following rules. IMPORTANT: The heading line and any blank spaces must NOT EXTEND PAST column 78 or else the program reads data past 78 as an extra line and part of the heading may be missing when you run the program. The headings come up when you restart the program from DOS or after running the color selection procedure in Section 1. Change headings as you desire; each file has three lines and you must leave them in the same order as above. The Recipe file uses the first three lines, the Record file uses the second three, the Combo file uses the third three, and the Extra log uses lines 10, 11, and 12. Only the above four file names have headings to them. Other files do not have headings. You can have more files with headings by adding a file (see below to see how to add a Pantry file) with the name record1, record2, record3, etc. Similarly for the other heading files; Combo1, Combo2, etc.; recipeA, recipeB, etc; Extra1, Extra2, etc. These added files must not have an extension as the regular files do. All the files in the family, for example "record", have the same headings. To create another new file - Use the F8 from within any Pantry file: Load the file name, for example, 'record2'. Answer Yes to create the file new. Use the Ctl F10 key to enlarge the Auxiliary Editor window if desired. You must enter a few characters at least to establish the file and press F10 to save it. A command to establish another file from Dos is: copy c:\eatwell\record c:\eatwell\record2.