Gene Wirchenko wrote:
> I distribute my app in .exe form. Sometimes, there are bugs. I
> dump to an error log, and I would like to see the line that threw the
> error. (I want to be sure that I am looking at the correct version of
> the code, and I would like to check with the latest version if at all
> possible.)
>
> Unfortunately, message(1) is do***ented as not being available in
> the run-time. "Is there a way around this?", he asked hopefully, not
> really expecting a positive answer, but being positively hopeful, sort
> of and hardly pleading at all, almost.
>
> Sincerely,
>
> Gene Wirchenko
>
> Computerese Irregular Verb Conjugation:
> I have preferences.
> You have biases.
> He/She has prejudices.
Gene,
We use the following line to setup for the global error handler for our
app:
ON ERROR DO ("VFPError.APP") WITH ERROR(), SYS(16), LINENO()
The LINENO() gives the line number being run.
--
Cy Welch
89 Camaro RS 5.0 TBI
03 Malibu


|