home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Media Share 9
/
MEDIASHARE_09.ISO
/
clarion
/
brokcode.zip
/
ADREC.EXE
/
README.1ST
< prev
next >
Wrap
Text File
|
1991-12-01
|
6KB
|
147 lines
NOTE: FORMERLY DOERROR.EXE
==================================
THE AddRec.exe AND THE ChkErr.CLA
==================================
To see a sample of what the chkerr module can do, use the enclosed two
pro modules (with dos1.bin in path or directory). Select the test.pro
and run it under the processor. The chkerr.pro must also be in the same
directory as test.pro.
To see how the designer portion was set up check the test.app. 3 Other-
Procedures are all that is needed there.
From start to finish:
For Designer
1. Create the application in designer
2. Add the 3 Other procedures as in the example
3. Create the source code but do not compile yet
4. Call the AddRec program by typing < AddRec >
5. Type in the filename to process (Ex. Test.cla or Test)
6. After this process is finished go back to Clarion and NOW
compile the Cla module(s).
7. The program defaults to *.cla but you may specify any extension.
8. That is all.
For HardCode
1. Type in < If error() then ChkErr('test/432'). > after any
disk activity or any ???.
2. 'test' is the name of the module and '432' is the line number
3. Make sure you include the quotes around the 'test/432'.
4. To replace the < stop(error") > use: < ChkErr('test/432') >
4. Include the map entries:
┌──────────────────────────┐
│ MODULE('CHKERR') │ !Module Name
│ PROC(CHKERR) │ !Shows error location-source/exe
│ PROC(SAVEERR) │ !Saves errors in file(log)
│ . │
│ MODULE('DOS1'),BINARY │ !Clarion DOS1
│ PROC(GODOS) │
│ . │
└──────────────────────────┘
4. Compile the source code
5. You are finished.
This is a line taken out of the test.cla example that was installed by
the AddRec.exe :
IF ERROR() THEN CHKERR('TEST/544').
**AddRec replaces < IF ERROR() THEN STOP(ERROR()). > & < STOP(ERROR") >
Now this is not really a new item as Mike Hanson's SuperModel and others
have been doing this for some time. But I thought it would be nice to
have it available for those who are not using these models. It isn't
much extra work to include the ChkErr function when HardCoding compared
to the benefits received.
If a program breaks down in the field the error information will be very
helpful for the programmer trying to determine the cause. The SaveErr.log
has the time, date, the error statement, the error code and the source
file with the line number for the client's reference, when calling.
--------------------------------------------------------------------------
IMPORTANT NOTE:
AddRec will now allow the user to add or replace 1-3 strings (records) in
the module being processed. New records are added after your specified
line# and/or after the search string you enter with the Ctrl-A procedure.
Or..... records will be replaced using the same criteria. A backup file
will be generated with the extension of 'OLD' and placed into the active
directory.
Space clipping of the new records will begin with the setting in the
Control file. You may change the default of 80 by pressing F8.
You may 'step' through the records by pressing any key after processing
begins or return to normal with the F3 key.
After processing you will be asked if you wish to view the new file.
You have many options here if you do. Just follow the prompts. You
can step through the file, line by line, run normally with F3, run slowly
with F4 or run a dual function with F5. The dual function scrolls the
old and the new files and provides an option with the up and down keys
to adjust the records being scrolled in each window. We call this the
Full Screen Mode and messages at the top will help you along. We would
encourage you to register and obtain the next updated version that will
have many more options and no restrictions. See below.
The AddRec.exe/hlp are copyrighted(c) CSAD material. All rights are
reserved.
The ChkErr and SaveErr are hereby given out to "public domain" with no
attachments by CSAD. If you pass it on please include all of the files
as you received them: Errors.Zip
ControlA.dat (control file)
ChkErr.cla (includes SavErr)
Readme.1st (this file)
SaveErr.log (the log created)
DoError.exe (installation program)
DoError.hlp (help)
Test.app (sample app)
┌──Master.dat (sample pgm)
These run├──Master.k01 " "
together ├──Test.pro " "
└──ChkErr.pro " "
===============================================================================
Gary Iverson, CSAD November 25, 1991
RR 1, Box 10B
165 BluffView Dr. Last Update:
Dakota, MN. 55925 12/01/91 vs 3.0
(507)643-6868/6431
Please register:
For the latest updated version with bug fixes, many more options and
details; send a check or money order of $49.00 incl s/h to the above
address. Specify the disk size that you require and include a full
address and a phone number, please. You may also include some ideas
of your own which we might include in a later version. You will be
given credit for any suggestions that we use.
Options included in our next release include adding or changing records
while in the file viewer, a map reader for processing, memory tables
for additional speed, and other enhancements.
We thank you.
-------------------------------------------------------------------------------
END OF FILE