home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Media Share 9
/
MEDIASHARE_09.ISO
/
clarion
/
brokcode.zip
/
ADREC.EXE
/
ADDREC.HLP
(
.txt
)
< prev
next >
Wrap
Clarion Help
|
1991-11-30
|
11KB
|
181 lines
Type in the new statement (string) that you want to use
with this procedure.
This statement will either be added or used as a replace-
ment using the left margin you enter here.
Press F2 to abort.
. Press Enter
Type in a 2nd new statement (string) that you want to use
with this procedure. (or leave blank)
This statement will either be added or used as a replace-
ment using the left margin you enter here.
Press F2 to abort.
. Press Enter
Type in a 3rd new statement (string) that you want to use
with this procedure. (or leave blank)
This statement will either be added or used as a replace-
ment using the left margin you enter here.
Press F2 to abort.
. Press Enter
Press F9 to accept the fields and continue with the pro-
gram.
Need to adjust records size? Press F8 from the main pgm.
Press F2 to abort or ESC to restart.
. Press Enter
Type in a 'Y' if you wish to replace records with line 1.
Always defaults to 'N'
Leave blank and press Enter if you are planning to add
but NOT replace records to the file.
Press F2 to abort or ESC to restart.
. Press Enter
Type in the line# that you wish replaced by the string in
field #1 or
Type in the line# that you wish the string in field #1 to
be added after. The action is set by the 'Y' or 'N' above.
Press F2 to abort or ESC to restart.
. Press Enter
MAIN2
File sizes here
-Record pointer
(before/after)
.and byte size
Line or Record No
+of access here
appears here
(before/after read)
The source lines appear here as they are read
Changes are scolled downward from this area
1. Ignore the yes/no field (to be used later by Map Reader).
2. Type in the file to process as < filename.cla > or < filename >.
3. Include the extension if different than: < .cla >.
4. The Map Reader, available soon, will process the entire map structure.
5. Program replaces or adds records by line# and/or InString using the
Ctrl-A and F8 keys and replaces Clarion Error statements with ChkErr().
A message appears here at the end of processing
asking if you wish to keep the backup file <filename.old>
You will also be notified if the old and new files
Records to be
do not match total record count
processed
manually
A completed statement appears here
shown here
1Record
;Count
Max No:12
CSAD (c) 1991
Press Enter
0O>>11
MAIN3
Notes:
The file that you list is read until a change is required. This record
is then processed and added to a temporary file. You request changes
with the Ctrl-A Key and set the record length with the F8 Key. The
ChkErr replacement is done automatically. See the last Help Page. The
temporary file is renamed to the original and a backup file is left in
the directory with the extension of 'OLD'.
You can step through the records by pressing any key multiple times until
you wish to return to normal by pressing the F3 Key.
If you are hardcoding, place < CHKERR('NAME/LINE#') > AFTER any disk/file
activity that might error. EX. IF ERROR() THEN CHKERR('Test01/235').
We were inspired by Mike Hanson's SuperModel and wanted to have this
ability included when hardcoding an application. Thanks Mike!
Mike's SuperModel already has this capability so you won't need it there.
If you are a true Designer Buff, try the BoxSoft's Model. Once it is
mastered you will have many procedures and settings at your finger tips.
> Press Enter
e MAIN4
Installation for Designer:
See the enclosed Test.app. Include the listed Other Procedures,
verify that DOS1.bin is in your path or directory, process the source,
call AddRec.exe < AddRec >, type in the filename < test.cla > ,
run AddRec, then compile the new *.Cla file(s) and you are finished.
We have also included a single Test2.Pro* that you can run for a sample.
When the form is entered a Get tries to access record #500 which will
induce an error and pop up the error sign. This info is then logged
in a file: SaveErr.log that you will find on your disk. The message
shows the source file, line number of the error, time & date. A phone
call from a client informing you of the log file info could help solve
his difficulty.
* Test2.pro needs access to DOS1.bin and ChkErr.Pro
The only missing item is a map reader to automate the process for a group
of *.cla files. We are working on that as time permits but until then
you could use a batch file with * and ? wildcards to run AddRec.exe.
Important: The AddRec.exe will make a backup copy to use should
problems occur.
Look for < filename.old >. Also a
SaveErr.Log file is created for the client for his refer-
ence when calling about a problem.
> Press Enter
Update Notes dtd 11-30-91
Summary:
1. Press F8 at the beginning or end (pause).
2. Type in a new length (bytes) for the write .
3. Press F9 to accept this change or ESC to abort.
4. Press Ctrl-A and type in a replacement string
with the line# or InString you want added/changed.
5. Run the AddRec Program.
5. Don't forget that you will have a backup copy
in the directory should you need it. (file.old)
String Replacement: With the Ctrl-A procedure you can specify: add or
replace a record (string) with the string you have
entered in the first field.
ChkErr:
Clarion's standard stop(error()) lines are replaced
automatically with ChkErr. See the enclosed Readme
file.
Gary Iverson CSAD
165 Bluffview Dr.
Dakota, Mn. 55925
*A disk cache like smartdrive or pc-cache will speed
(507)643-6868
up this program.
> Press Enter
The measurement of 80 bytes can be adjusted at will
prior to processing. The normal size of a Designer
module is 80. To see the effect load the module
with the Editor and check the end of record (lines)
If the source code lines are cut short add to this
number. If you have excessive space to the right
of the records, reduce this number.
Space clipping begins with this setting.
The setting is saved in the control file.
& Press Enter
Press the F9 Key to accept this length.
Press F2 to abort or ESC to restart.
. Press Enter
Type in the search string that you wish the program to use
to identify a record (string). The action for this search
is set by the above 'Y' or 'N'. You may combine the line#
and search string and have action taken using both field
criterea as a requirement.
As an example: If you wished to add < ALERT(F5_KEY) > &
the < ALERT(F6_KEY)
1. Type ALERT(F5_KEY) in line 1. of this screen.
2. Type ALERT(F6_KEY) in line 2. (you could enter
these two together on one line with a ';' separator).
Add a statement preceeded by a '!' if you wish.
Type these statements with any left margin as this
is how it will be added. (col 1 is a label)
3. Set action to 'N' under line one (for add).
4. Leave line 2. blank.
5. Enter < ALERT(ACCEPT_KEY) > on line 3.(be specific)
6. ALERT(F5_KEY) & ALERT(F6_KEY) will be placed
after any line that includes 'ALERT(ACCEPT_KEY)' in
the source module that you are running.
7. Compile the source. Try it!
Press F2 to abort or ESC to restart.
. Press Enter
ADDLINE
ADDLINE27
ADDLINE3z
ADD_REC
DEL_FLAG
LINE_NO
MAIN
MAIN2 1
MAIN3
MAIN4
MEAS
PAUSE
SEARCH b#