home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Zodiac Super OZ
/
MEDIADEPOT.ISO
/
FILES
/
13
/
DEG.ZIP
/
DEG.DOC
< prev
next >
Wrap
Text File
|
1996-07-04
|
10KB
|
261 lines
DEG.EXE
A Fixed Format Data Entry Editing tool
by
Daniel Bingamon
Kadima Technology
1573 King Ave. BOX 238
Kings Mills, OH 45034-0238
1.0 Introduction.
2.0 SCN.EXE - Creating format screen.
3.0 Calling DEG from external programs. The command line
options.
4.0 Position '.POS' files.
5.0 Graphics configuration '.CFG' files.
6.0 Credits, Registration, etc.
1.0 Introduction
DEG is designed for creating fixed database records up to
1000 characters wide. The only limitations are the screen
area and the amount of prompts used.
DEG can be called by external programs using SPAWN like
funtions through 'C' of other languages. It supports Mouse
clicks to move from record to record or function keys.
PCX display only is provided for pictorial attachments to
files. This is limited to one PCX file per record.
DEG operates in EGA mode 16.
The way in which screens are designed is simple. Run the
SCN.EXE program, type the screen out and put in the prompts
and fields, then save.
DEG is great for business record storage, requires little
training. Good for personal lists.
Fixed record formats are IMPORTABLE to almost any database
program in existance.
2.0 SCN.EXE
SCN is used for creating the format of the data entry
screens. Usage is simple.
Make sure that your computer has a CONFIG.SYS line saying:
DEVICE=C:\DOS\ANSI.SYS
Note: DEG does not require ANSI.SYS - it only used by scn.exe.
1. Run SCN by typing:
SCN - Press ENTER
2. Enter Filename. Any name you wish, however, it must
end with '*.SCN'. Don't include the quotes.
3. Type in titles and Prompts any where you please.
Now, Wherever data field belongs, use the following.
@@@@@@ The AT signs are for alphabetic and numeric
data. If there are 25 character, enter 25 of
the AT '@' signs.
###### The NUMBER signs are for numeric entry, this
allows the entry of numbers, periods, spaces
and plus/minus signs.
|||||| The PIPE signs are for the entry of a PCX file
name, this should be 12 characters in a file
name so be sure to have 12 of these together.
@!!!!! The EXCLAMATION signs are protected data
entry fields, the first character sets the
type and the exclamation point in the second
position and beyond prevents this field from
being edited. Untouchable.
@~~~~~ The DUPLICATE sign is for carrying on data
from a previous record in this field.
This will only carry when adding a new record
on at the end of the file and will not modify
at any other time.
&1 This is a category sign. If &1 is used, the
first item in the category file is displayed
on the screen. &2 shows the second. There
are a maximum of 10 categories loaded from a
file with an extension of '.CAT'. Thus allowing
programmable categories without modifying the SCN
file each time.
4. When finished Press the escape key and change or keep
the filename and press ENTER.
Note that the record length is displayed, this
includes the Carriage Return and line feed.
Write this down. If it does not meet your
expectations, re-enter SCN and check your field
lengths.
5. It's done. The .SCN file is created, an ASCII file, it will
look like this:
P4
6
0
NAME:
P10
6
0
@@@@@@@@@@@@@@@@@@@@@@@
The P30 indicates that the word NAME shows up in col 4, the
next number is the row which is 6. The zero is useless
here, it serves as a placeholder in the file. The zero
however is used to indicate before the string of '@' signs,
that these will be place starting in col. 0 in the files
record. The 23 at '@' signs make the field 23 characters
wide.
3.0 Calling DEG from external programs.
The command line format is:
Simple:
DEG filename - no extension.
example: DEG TEST
This assumes that the filename is TEST.DAT and the
format file is TEST.SCN.
DEG filename screenname [categoryname]
example: DEG TEST SCRN
This assumes that the filename is TEST.DAT and the
format file is SCRN.SCN.
If the Category name is not given and the screen name
is, the name would be based in the screen name or in
this case 'SCRN.CAT'. If the screen name is missing,
the data filename will be used.
The Category name is a file of up to ten categories.
This is useful for fields which change meaning or
using screen files that look closely alike. Another
application is changing a company name in a package
software system without customizing every screen.
4.0 Position POS Files
The purpose of POS files are to show change in a
record made by users. If the file is changed, the DEG
program will place a '1' in the position of that record
given in the POS file.
This is a number representing offset to the
beginning of the record. Zero is the first position.
Make sure that this does not exceed the length of the
actual record.
The TEST.POS file on this disk contains the number 45
as an example. It is advised that you change the
number when your program process the change made by
the operator to something other than a '1'.
The POS files are geared on the filename. If the
above example were used, the computer would use:
TEST.POS.
5.0 Graphics Configuration CFG Files
The purpose of CFG files load the X-offset, Y-offset,
Width and Depth of the PCX file of the display. These
coordinates are based on the top left corner of the
screen, 640 pixels wide and 480 pixels deep.
6.0 Credits, Registration, etc.
CREDITS
This program is coded in the ANSI-C language using the
POWER-C compiler by MIX software and uses the
C/Windows Toolchest for DOS also by MIX software.
Originally written about 6 years ago on Commodore
Computers in Basic and then the concept rewritten in
the C language using ANSI graphics. The C/Windows
Toolchest was later added for mouse support and
graphics mode for appearance improvment.
To modify this source code, you will need the C/Windows
Toolchest for DOS by Mix Software. I cannot legally include
their library file. Once linked into the software, the final
.EXE file is distributable royalty free but before that, Mix
retains their rights. Mix software is in Richardson, TX.
A special version of this software is currently in use at
a few hospitals.
DISCLAIMER
The creator of this software has provided it and this
documentation on an as-is basis and makes no
warranties whatsoever although every effort has been
made to insure that this information given and
software is accurate. Daniel Bingamon or Kadima
Technology can not be help responsible for any damages
suffered from the use of this product.
This disclaimer also applies to the maker of the
compiler and the Graphics Software library inclusions.
New features are continually being added, eventually,
multi-screen entry, Windows Version, etc.
If you like this software, please consider sending $10.
It will go to the expense of buying addition equipment for the
development of additional utilities.
Make checks payable to: Daniel Bingamon
Address to: Kadima Technology
1573 King Ave. BOX 238
Kings Mills, OH 45034-0238