Consultor Eletrônico



Kbase P66006: Trying to reference item zero of an array variable, getting error 26
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   5/5/2009
Status: Verified

SYMPTOM(s):

Trying to reference item zero of an array variable

Array subscript 0 is out of range. (26)

** Array subscript <value> is out of range. (26)

FACT(s) (Environment):

All Supported Operating Systems
Progress 9.x
OpenEdge 10.x

CAUSE:

Array variables (i.e. variables that use the EXTENT phrase) are 1-based and not 0-based. This means that the lowest element number that you can refer to is 1 (not zero).

FIX:

Modify the source program so that it does not attempt to reference the array using a variable containing the value zero