home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Power-Programmierung
/
CD1.mdf
/
basic
/
library
/
pb
/
library5
/
indent.doc
< prev
next >
Wrap
Text File
|
1990-08-16
|
2KB
|
57 lines
INDENT
------
The Basic Programmers Best Friend
INDENT will help basic programmers using either the Turbo
Basic(tm) language by Borland or Power Basic(tm) by Specta Publishing and
most likely any basic language source code stored in ascii format.
What INDENT will do is properly indent the following:
------------------------------------------------------
FOR NEXT
DO LOOP
WHILE WEND
IF THEN ELSE ELSEIF END IF
------------------------------------------------------
INDENT will detect the apostrophe REMark delimiter
------------------------------------------------------
Good structured programming technique stresses the importance of
indentation within looping and conditional structures. However,
remaining aware of the proper placement of indentations can be
time consuming as well as distracting. INDENT will actually help
you find those errors in logic by better illustrating the more
complex nested structures.
I use INDENT regularly and find it to be a great time saver. I'm sure
you will enjoy the same results.
INDENT is well error trapped and for the most part will display the
appropriate error messages. However, neither the author, or KDS
Solutions will be held responsible for any damage arising out of the
use, non-use, misuse, or abuse of the product.
USING INDENT
------------
To use indent simply type "indent" from the command line. You will
be prompted for the source filename. Any normal DOS path\filename
(and its extension,if there is one) will do. The file must be in
ascii format.
Next you will be prompted to enter the destination filename. You may
supply any valid Dos path\filename as before. HOWEVER, you must
specify a different filename than the source. By different, I mean
you can merely change the extender. This is for your own piece of
mind.
The program indents three spaces for each level of nexting. I choose
this number based on overall appearance, efficiency, and laziness.
The program will display the message "Working..." until such time
the new file is created.
If there is enough interest in this utility, I will supply a version
that allows you to pass command line parameters suitable for use in
batch files.