PowerBuilder · Runtime error
What does R0066: Invalid subscript for array index mean in PowerBuilder?
An array index expression evaluated to a value outside the array's valid range.
An array index expression evaluated to a value outside the array's valid range.
Check the index expression against the array's actual current bound with UpperBound(), the same class of mistake as R0003 but specifically surfaced through a subscript operation rather than a general array reference.