PowerBuilder · Runtime error

R0001: Divide by zero

What does R0001: Divide by zero mean in PowerBuilder?

The application attempted to divide a value by zero at runtime.

R0001: Divide by zeroPowerBuilder Classic · Appeon PowerBuilder

Condition

The application attempted to divide a value by zero at runtime.

Fix

Add an explicit check for a zero divisor before the division, or wrap the operation in a TRY-CATCH block for DivideByZeroError so the application can recover instead of crashing.

Pending source verification. Not yet checked against official documentation.

Related runtime error