chpicker
Programmer
- Apr 10, 2001
- 1,316
Well, since I got such a fast and informative response to my first question on here, I thought I'd try a tougher one. *grins*
Does anyone know of a good way to debug a report form? When an error occurs executing a report form, the debugger's trace window shows nothing (there is no code executing, after all). For example, one of the report forms that I created gives the error "Data type mismatch"...but then still appears to print properly with no fields missing. There is no code whatsoever in the report...everything is either processed ahead of time in the procedure that calls it, or is calculated by the fields themselves in a single expression.
This particular one is merely annoying, since I can hit Ignore and still get the report I want. But ordinarily any error will abort the printing entirely, even if ignored. Is there any way of getting FoxPro to tell you what field in the report is causing the error? (I'm using VFP 6.0 with SP4.)
Does anyone know of a good way to debug a report form? When an error occurs executing a report form, the debugger's trace window shows nothing (there is no code executing, after all). For example, one of the report forms that I created gives the error "Data type mismatch"...but then still appears to print properly with no fields missing. There is no code whatsoever in the report...everything is either processed ahead of time in the procedure that calls it, or is calculated by the fields themselves in a single expression.
This particular one is merely annoying, since I can hit Ignore and still get the report I want. But ordinarily any error will abort the printing entirely, even if ignored. Is there any way of getting FoxPro to tell you what field in the report is causing the error? (I'm using VFP 6.0 with SP4.)