Hello Antonio,
Is there a reason why
“by default, division by zero yields zero”
is not included.
Why is the source code errsysw.prg in FWPPC in folder classes?
Thanks in advance
Otto
errsysw - division by zero
errsysw - division by zero
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
********************************************************************
- Antonio Linares
- Site Admin
- Posts: 37481
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact:
Re: errsysw - division by zero
Otto,
It is included in errsysw.prg:
We use just one set of files for both FWH and FWPPC, so in order to have a different errsysw.prg from FWH, we need to place FWPPC one in classes folder.
It is included in errsysw.prg:
Code: Select all
static function ShowError( oError )
local cError := oError:Description
local n
if oError:GenCode == EG_ZERODIV
return 0
end
...
Re: errsysw - division by zero
Hello Antonio,
thank you. Yes you are right. But I don’t understand why if
tisch->menge is 0 the program freezes:
nPreis := tisch->wert / tisch->menge
I use now this code which works:
if tisch->menge <> 0
nPreis := tisch->wert / tisch->menge
endif
Best regards,
Otto
thank you. Yes you are right. But I don’t understand why if
tisch->menge is 0 the program freezes:
nPreis := tisch->wert / tisch->menge
I use now this code which works:
if tisch->menge <> 0
nPreis := tisch->wert / tisch->menge
endif
Best regards,
Otto
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
********************************************************************