To all:
Just uploaded a new version of DICTFILE.CLS. Some major changes
here. I decided to make it an option whether or not the class sets
the "@system.return.code" by adding a $DEFINE for SET.STATUS and
appropriate $IFDEF statements. If you define SET.STATUS to anything,
the class will attempt to set @system.return.code on exit, making the
result available in "STATUS()". Note that if you define SET.STATUS,
the class MUST be compiled in "internal" mode (qm -internal).
I decided to trigger ABORT from the class if you try to access a
field that is not defined in the dictionary. This will greatly
simplify debugging of programs that use this class as previously the
class just quietly returned null data if you misspelled a field name,
which is dangerous.
A list of the most recent changes is given below:
* 24 Aug 09 gdw - Added abort if record field is undefined, this
will aid debugging for users of this class
* 24 Aug 09 gdw - Added SET.STATUS define to determine whether
program sets @system.return.code or not
* 24 Aug 09 gdw - Tried to set return codes and error messages where
necessary, added subroutines error and noerror
* 23 Aug 09 gdw - Changed logic to default "start" to set current
key as "KEY" if no alternate index name supplied
* 23 Aug 09 gdw - Added prefixes to datanames to indicate raw or
unformatted data to be returned
* "R%" at the beginning of a dataname will return
the data as raw (unconverted AND unformatted)
* "U%" at the beginning of a dataname will return
the data as unformatted
* 22 Aug 09 gdw - Changed "format.mode" logic to simplify querying
and restoring mode
GaryW
On Aug 21, 9:50 am, Ashley Chapman <
ash.chap...@gmail.com> wrote:
> 2009/8/21 Gary <
gwalb...@gmail.com>: