home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CP/M
/
CPM_CDROM.iso
/
cpm
/
turbopas
/
pascscr.lbr
/
DOSCREEN.DOC
next >
Wrap
Text File
|
1986-06-21
|
3KB
|
81 lines
------------------DOSCREEN.PAS------------------------
by Steve Cohen
2/11/85
DOSCREEN.PAS is a turbo-pascal program that does the most primitive
part of screen generation.
It produces two output files
1> a .PAS file which contains two procedures that will be a big part of
Full-Screen IO programs. Their syntax and names match those of Borland's
B-TREE.Pas sample program that was distributed with Turbo-Toolbox.
These procedures are:
-- OutForm: Prints the prompts that will appear on the screen in their
proper locations.
-- ClearForm: Erases anything written in the entry fields, but leaves
the prompts intact. This may seem trivial, but the
co-ordinates of the gotoxy statements contained here will
be the coordinates to start whateve input routines you
write.
-- Also included in this .pas file is a "main program" which will
compile under Turbo, and serve as a test of the outform procedure.
You'll almost certainly want to throw the "main program" away once
you've incorporated the routines into your program.
2> A .SCR file which contains the screen in the same format as DOSCREEN
stores it in memory which makes it accessible for further editing. it
too can be thrown away when no longer needed.
DOSCREEN Editing Commands - Basically follow Wordstar except:
Fixed 8 space tabs only.
Going beyond the a border of the screen takes you to the other side.
i.e. Exceeding the right margin takes you to the left side of the next line;
Exceeding the bottom margin takes you to the top and vice versa.
There may be one or two other exceptions. You can have fun expanding
or changing these.
SYNTAX: Field tags can contain any character except '_'. They may
contain up to two consecutive spaces. Changing the procedure FormStrings
can change any of this. Field Data Entry Blanks should contain only
'_' characters -- even if you intend to use others as in date fields.
(e.g. __/__/__ should be handled in Doscreen as ________ When you write
you input routines you can change them). The only purpose of these '_'
as far as DOSCREEN is concerned is to count the number of spaces to blank
out.
-----------------------------------------------------------------
GETTING STARTED:
You may get a 'whiff' of this program's capabilities by doing the following:
1> RUN the file SAMPLE.PAS
2> Compile Doscreen.pas under turbo to a .COM file.
3> RUN Doscreen: Immediately press Ctrl-F. This will bring up the
sample screen for editing. It should look Identical to the one you
just saw when you ran sample, except for the lines of '-' at the top
and bottom of the screen.
4> Now edit the screen however you like, saving it to whatever file you
like. If you call it 'SAMPLE', however, the original sample will be lost.
________________________________________________________________
As you can see, this program may serve as one building block in a
DataBase type program using the Turbo ToolBox. That was my intention.
I'd like to see any questions or improvements anyone wants to make in
it. Send them to
Steve Cohen
3655 N. Hermitage
Chicago, IL 60613