Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Divide By Zero Error

Status
Not open for further replies.

bushrob

Programmer
Jan 13, 2003
2
US
I have an n-tier application that I am having a problem with. When I run the code locally and call a method from a class everything works fine. But once the class is compiled to a dll and the method is called on a remote server using RDS I get a "Divide By Zero" error. I know these are vague details but just wondering if anyone has come across this situation before.

Thanks.
 
maybe you can just check your code and find the line that do some division. and do some if's . . .

result = number1/number2

if number2 = 0 then
result = 0
else
result = number1/number2
end if


Please pardon the grammar.
Not good in english.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top