PowerBuilder · Runtime error

R0003: Array boundary exceeded

What does R0003: Array boundary exceeded mean in PowerBuilder?

The program referenced an array index that does not exist, either negative or beyond the array's current upper bound.

R0003: Array boundary exceededPowerBuilder Classic · Appeon PowerBuilder

Condition

The program referenced an array index that does not exist, either negative or beyond the array's current upper bound.

Fix

Check the index expression against the array's actual current size with UpperBound(), especially inside loops driven by a count computed earlier in the script that may no longer match the array's real size.

Pending source verification. Not yet checked against official documentation.

Related runtime error