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

Author: Man-wai Chang

Posted: 2013-08-12 at 09:27:56

This is my Foxpro/DOS way of catching division by zero:

on error *

x=1/0

if if "*"$x

? x

? "divide by zero"

endif

on error

--

.~. 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=MJBG8icTrciptu-DsJZmL7F9FW+WFP1C=Nbsd1ghx_Eg-w@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