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

2013-08-13 Thread L ALVEY
I used a similar method in an earlier version of the screen which worked fine. In my form, I used the MOD() function which catches the error, as does the % operator. There is some inconsistency here in that % traps the error but / doesn't.   Thanks to everyone who contributed.

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

2013-08-12 Thread L ALVEY
ERROR. On Mon, Aug 12, 2013 at 5:18 PM, L ALVEY wrote: > It seems that division by zero is not caught by VFP. In the command window, > type ? 1/0 , and you get a line of asterisks, right? (I'm running > VFP9 SP2.) -- .~. Might, Courage, Vision. SINCERITY! / v \ 64-bit Ubuntu 9.1

FP: Trapping division by zero (Error 1307)

2013-08-12 Thread L ALVEY
It seems that division by zero is not caught by VFP. In the command window, type ? 1/0 , and you get a line of asterisks, right? (I'm running VFP9 SP2.)   I have a form which evaluates a string expression and sends the result back to its caller. The only way I have found to catch division by zer