%OP%BON
%CO:A,12,72%%H1%%H2%zFormat  -  zBase Program Formatter

Software & documentation (c) 1989, Simon Phipps, 0221

Free to Z88 Users' Club Members provided:
a) This document stays with the software & is not altered
b) No attempt is made to make financial gain from this software without 
   written permission.


%H1%Purpose

Takes unindented zBase programs and indents them either to a printer or 
in place of the original file.


%H1%Usage

RUN the program. It does not matter which directory it resides in. It 
will probably be helpful to make the filer point at the directory 
containing the files to format.

The program will prompt for a file name. Enter the name and press 
ENTER. The program will ask if you want a listing. Answer "Y" to 
produce just a listing, or "N" to convert the named file to an indented 
format.

The program will prompt for an indent step. Enter a number like 2; this 
will be the offset added to each line inside a 'do while' loop or an 
'if...endif' clause.

If printing was not requested, the program opens a temporary file in 
the current directory. It completely unindents each line before 
applying the new indents, and at the end deletes the original file and 
renames the new version to the old name. If printing was requested, the 
source file is untouched; a banner is printed with the file name and 
the indented program is sent to the printer. It is best to leave the 
programs unindented for speed and just indent them onto the printer.
%CO:B,12,60%%CO:C,12,48%%CO:D,12,36%%CO:E,12,24%%CO:F,12,12%