home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Archive Magazine 1996
/
ARCHIVE_96.iso
/
discs
/
gerald
/
6_10
/
CustomChck
/
ReadMe
< prev
Wrap
Text File
|
1993-06-01
|
4KB
|
98 lines
%OP%VS4.13 (28-Apr-92), Gerald L Fitton, R4000 5966 9904 9938
%OP%DP0
%OP%IRY
%OP%PL0
%OP%HM0
%OP%FM0
%OP%BM0
%OP%LM4
%OP%PT1
%OP%PDPipeLine
%OP%WC1026,2262,188,1748,0,0,0,0
%CO:A,72,72%
%C%Custom Function monitoring facility for PipeDream 4
%C%by Andrew Murray
Keywords:
Custom Monitor Murray
The enclosed material may be useful to any of your members who are
involved in developing Custom Functions for PipeDream 4. It provides a
convenient facility for displaying custom function parameters (and
other values) within a custom function program under development. It
consists of a set of custom functions in the document [c_o], including
a function "example" designed to demonstrate the facilities provided,
which is invoked from the document [Example].
The functions intended to be invoked by the user are: "o", "s", "a" and
"oindex". Single character function names have been chosen for
convenience, to minimise typing, because the function calls are
intended to be used as a temporary debugging aid, to be removed as bugs
are corrected. All other function names are prefixed by "o_". It is
intended that all functions in [c_o], apart from "example" would be
copied into the user's function document and the name "o_switch"
defined and given the value 1.
Two versions of the function "o" are provided. The first displays, in a
dialogue box, the function name and the parameters of the functions and
%H4%index%H4%es under test. If the "OK" button is selected, processing
continues to the next occurrence of "o" or "oindex". If the "Suppress"
button is chosen, the function "o" is ignored and "oindex" acts as
%H4%index%H4% until "o_switch" is reset to 1.
The alternative version of "o" is selected by applying the %H4%Number <>
Text%H4% command (\bnt) to the two "result" lines ([c_o]A22 and A27) and
loading the document [o]. This document provides space for the function
names and parameters to be displayed. The display area size may be
altered by changing the value of [o]all. "o" may still be inhibited by
resetting "o_switch" to zero, and "o_switch" is additionally used to
control the current line number within [o].
Slot [o]B1 resets "o_switch" to 1 each time [o] is loaded. When copying
the functions from [c_o], [o] should also be copied to the user's
directory and the function document name in [o]B1 corrected if
necessary.
The function name and parameters of the functions and indexes under
test are displayed in the column specified by [o]all. When the column
is filled, it is overwritten. The lines are numbered to identify the
most recent. If the line is too long for the screen, it can be split in
the formula window in the normal way.
Both versions of "o" take two text parameters. The first parameter
identifies the function under test, the second specifies its
parameters. The parameters of the function under test are converted to
text strings by the functions "s" and "a", and if there are multiple
parameters, the strings should be concatenated with %H4%join%H4%.
The function "s" converts the parameter to a text string preceded by
"n:", "d:" or "t:" to identify number, date or text respectively. If
the parameter is an array, a line is displayed for each element of the
array, duplicated apart from the array parameter. The effect may be
seen in the example, in the treatment of @shortarray. This facility is
clearly not suitable for large arrays, and so the function "a" is
included to provide a more compact presentation for an array. Only the
first element is shown, enclosed in4%index%H4% and, if valid, the value returned by the %H4%index%H4%, before
invoking the %H4%index%H4% function itself.
I hope some of your members find these facilities useful.
Andrew Murray
102 Aldermans Drive
Peterborough
PE3 6AZ
Telephone: 0 733 67185
5th May 1993
FileDataéDetails N D▐² xMo ú\%OP%VS4.13 (28-Apr-92), Richard J Darby, R4001 0008 5218 9781
%OP%DFE
%OP%PT1
%OP%PDKXP1124L
%OP%WC2,1238,44,980,0,1,0,0
%CO:A,72,72%%C%Entering data column by column
I have been keeping weather records for ten years or so, and keeping
the data on computer to facilitate rapid recovery and compilation of
statistics. For many years the data was kept on an Acorn Atom using
the Atomstore program. When I obtained an Archimedes in 1988 I decided
to move the data onto a