Re: FP: Trapping division by zero (Error 1307)

Author: Man-wai Chang

Posted: 2013-08-12 at 09:23:24

Not even "ON ERROR *"??? Now that's weird....

>From FOXHELP.CHM:

ON ERROR DO errhand WITH ;

ERROR( ), MESSAGE( ), MESSAGE(1), PROGRAM( ), LINENO( )

*** The next line should cause an error ***

USE nodatabase

ON ERROR && restore system error handler

PROCEDURE errhand

PARAMETER merror, mess, mess1, mprog, mlineno

CLEAR

? 'Error number: ' + LTRIM(STR(merror))

? 'Error message: ' + mess

? 'Line of code with error: ' + mess1

? 'Line number of error: ' + LTRIM(STR(mlineno))

? 'Program with error: ' + mprog

On Mon, Aug 12, 2013 at 9:21 PM, L ALVEY <trukker@btinternet.com> wrote:

> ON ERROR doesn't work either.

--

.~. Might, Courage, Vision. SINCERITY!

/ v \ 64-bit Ubuntu 9.10 (Linux kernel 2.6.39.3)

/( _ )\ http://sites.google.com/site/changmw

^ ^ May the Force and farces be with you!

_______________________________________________

Post Messages to: ProFox@leafe.com

Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox

OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech

Searchable Archive: http://leafe.com/archives/search/profox

This message: http://leafe.com/archives/byMID/profox/CAGv=MJAXGqGpBFB-U_d3rGRmJCjQtyBTYxU16i=sO6+Lesv8+g@mail.gmail.com

** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

©2013 Man-wai Chang