AndrewMozley
Programmer
When an error happens in an application, this may have been trapped by :
The code which is then executed includes :
That works fine: Local, Public &c variables are listed with their names and values. There is other code in the error routine which shows what tables and indexes are in use.
I would like the report also to show the values of variables which are properties of the form where the error occurred; these can be seen at design time with Form | Edit property/method – the items of type ‘P’.
There would usually be no more than half a dozen of these : things like the account number of a customer being processed &c
When the error occurs, the command AMEMBERS(laProp, ) produces an array which includes these items, and this includes the names of the properties which I would like to show (with their current values) on the error report. But it also includes a large number of properties of the parent classes, which I do not usually wish to include in the report.
Would be grateful if anyone can provide code which would list the properties of the current form and their values.
- Andrew
Code:
ON ERROR DO ErrorRoutine WITH ERROR(), MESSAGE(), PROGRAM(), LINENO() NOCONSOLE
The code which is then executed includes :
Code:
LIST MEMORY LIKE * TO <filename> NOCONSOLE
That works fine: Local, Public &c variables are listed with their names and values. There is other code in the error routine which shows what tables and indexes are in use.
I would like the report also to show the values of variables which are properties of the form where the error occurred; these can be seen at design time with Form | Edit property/method – the items of type ‘P’.
There would usually be no more than half a dozen of these : things like the account number of a customer being processed &c
When the error occurs, the command AMEMBERS(laProp, ) produces an array which includes these items, and this includes the names of the properties which I would like to show (with their current values) on the error report. But it also includes a large number of properties of the parent classes, which I do not usually wish to include in the report.
Would be grateful if anyone can provide code which would list the properties of the current form and their values.
- Andrew