Msg: 3194 *Conference*
09-15-92 08:40:09
From: RICHARD HANSON
To : WILLIAM BRENT
Subj: REPLY TO MSG #3192 (PROGRAM MODIFICATION)
William: There are several steps involved in modifying a program. If you're willing to do the keystroking, perhaps together we can get that program to do what you want. I have not looked at the program but will provide a few commands that you may try out. I assume you want whatever printed to also go into a .DO file. Yes? First, somewhere at the beginning of the program, create a line with MAXFILES=1:OPEN"filename.DO"FORAPPENDAS1 ...the word "filename" is the name of the .DO file you wish to append data into. The APPEND command creates the file if it does not exist, then appends data to the end. The APPEND command leaves existing data intact. If, however, you use OUTPUT, then the existing file is replaced by new data everytime you run the program. Understand? Then, just after or just before the LPRINT commands (LPRINT means print to the line printer ... it's an old term), insert duplicate PRINT#1, lines for each LPRINT line. The command LPRINT is usually followed by variables like X or E$, or N(X), etc. Variables are temporary holding areas for data, i.e., LPRINT X will print to the line printer to value of X at that time. Example: LPRINT X Z$ Y PRINT#1, X Z$ Y Lastly, just before the program dose a MENU, you insert the word CLOSE. CLOSE:MENU ...the : character concatinates the two commands onto one line. FYI: There is no "condoginates" just concatinates. (grin) Good luck young programmer. -Rick-