home *** CD-ROM | disk | FTP | other *** search
- DBINDENT DOCUMENTATION
-
- For Version 1.00 2-18-85
-
- (C) 1985 by Merlin R. Null
-
-
- The purpose of DBINDENT is to change the indentation of a
- dBASE II command file and send the output to the screen, printer,
- file or any combination of these. Any value of indentation
- between 0 and 9 columns may be used. This allows more freedom of
- choice than is offered with most pretty printers. Usually, the
- author's ideas of pretty printing are imposed on the user. It is
- useful for creating a better looking file than one generated by
- DBSOURCE. DBSOURCE will produce a file with no indenting.
- DBINDENT should have been included with DBSOURCE.LBR, but the
- library grew too large.
-
-
- Library Contents
-
- DBINDENT.LBR should contain the following files:
-
- DBINDENT.COM Stand alone compiled MBASIC
- DBINDENT.BAS The MBASIC source
- DBINDENT.HLP A help file readable from DBINDENT
- DBINDENT.DOC This documentation
- DBINDENT.CRC CRC list for verification
-
- ********** DBINDENT.COM is a stand alone file.
- * NOTE * If you have BASCOM and wish to save
- ********** disk space, recompile the source for
- use with BRUN.COM.
-
-
- Installation
-
- The first time you run DBINDENT, you will be asked for the
- the decimal values of your clear screen sequence. This is used
- to write CLS.DAT, the data file that holds your terminals clear
- screen information. If it is installed correctly, you should
- then see the clear screen work and the start of the program. If
- you get scrolling instead, kill CLS.DAT and try again. If you
- prefer scrolling instead of a clear screen, enter the number 10
- for each blank line you want when DBINDENT changes screens. A
- Maximum of 9 are allowed. Example if your clear screen sequence
- is ^Z or ASCII character 26:
-
- Clear screen character 1 ? 26
- Clear screen character 2 ? <RETURN>
-
-
-
- Line Length
-
- DBINDENT does no checking of line length, so lines longer
- than your console or printer will handle will be wrapped. If
- these lines are longer than 80 columns, you will not be able to
- modify the command file with dBASE II, as dBASE amputates lines
- at 80 columns. Make any needed changes with a word processor, if
- this is the case. dBASE will run programs with lines longer than
- 80 columns.
-
-
- Errors
-
- DBINDENT does check for proper closing of loops. If you
- have one to many END statements in the file, DBINDENT will stop
- and show you the line where the last ENDIF, ENDDO or ENDCASE was
- used along with the line count to that point. This will only
- happen if the END statement would call for negative indentation.
- DBINDENT checks for proper matching of totals of the following
- pairs: IF and ENDIF, DO WHILE and ENDDO, DO CASE and ENDCASE. At
- the end of processing you may get an error message like:
-
- *** WARNING *** This file has the following errors:
- 1 - DO CASE without ENDCASE
- 1 - ENDDO without DO WHILE
- No files changed
-
- This would probably mean that you used an ENDDO where you
- should have used an ENDCASE. If you use the P (Print) option
- with a file with a termination error, it will still give you an
- indented printout. It will terminate early only if negative
- indentation is called for. If you find the error hard to locate,
- get another printout with an indentation value of 8.
-
- DBINDENT does not check for proper nesting of loops. If you
- cross loop lines and have the proper number of terminators
- of each type, DBINDENT will accept that as correct. Visual
- examination of the resulting printout should show the problem.
-
-
- Options
-
- P Send output to Printer
- F Send output to File
- N No console output
- 1-9 Value to indent (default=2)
- 0 Remove all indenting
-
-
- No option specified
-
- Without an option specified, the output will go only to the
- console with an indentation value of 2. No files will be
- generated or changed.
-
-
- Numbers with the options
-
- Adding a numeral with the options or as a sole option
- changes the default value (2) of the indentation. Values may be
- between 0 and 9. 0 produces a file without indentation. This
- might be useful if you want to produce a slightly compressed
- file. With heavy nesting of loops a large number of bytes can be
- tied up in indentation. If more than one number is included in
- the option field, only the first one will be used.
-
-
- Send output to Printer
-
- The P option sends the output to the printer. Used alone,
- the P option will not change any disk files. It will produce a
- pretty printed listing of a file for any original indentation
- value.
-
-
- Send output to File
-
- The F option produces a new, pretty printed, file with the
- same name as the input file. The input file is renamed with a
- .BAK extension.
-
-
- No console output
-
- The N option shuts off the normal presentation of the output
- file on the console. This helps speed up generation of a file or
- printing of the output. It can not be used unless the F or P
- options are used.
-
-
- Abbreviations and Case
-
- DBINDENT looks for only the first four letters of reserved
- words as does dBASE II. Lower case reserved words are also
- allowed, although this is contrary to programming standards for
- dBASE suggested by most authors.
-
-
- Help File
-
- The help file may be called from DBINDENT by entering a "?"
- at the title screen.
-
- Filename.SRC/.CMD or Drive:? ?
-
-
- LEGAL NOTICE
-
- DBINDENT is NOT "Public Domain." Copyright is held by the
- author:
-
- Merlin R. Null
- P. O. Box 9422
- N. Hollywood, CA 91609
- (818) 762-1429
-
- Permission is given only for private, nonprofit use of
- DBINDENT. Feel free to make copies of the program for your own
- use or for your friends. However, DBINDENT may NOT be sold or
- included with any collection of programs for sale or used as an
- inducement to buy another product or program without the written
- permission of the author. Permission is also given for nonprofit
- computer clubs to include this program in distribution disks,
- provided total charges for the entire disk of programs, copying
- and shipping do not exceed $20.00. My vote of thanks goes to
- those clubs that have kept their charges under $10.00.
-
- MBASIC and BRUN are Trademarks of Microsoft
- dBASE II is a Trademark of Ashton-Tate
- rom DBINDENT by entering a "?"
- at the title screen.
-
- Filename.SRC/.CMD or Drive:? ?
-
-
-