Consultor Eletrônico



Kbase P16119: ** Array subscript is out of range. (26) defining WORD-INDEX against an ARRAY field.
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   31/12/2004
Status: Unverified

SYMPTOM(s):

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

Error: Array subscript 0 is out of range (26)

SYSTEM ERROR: fmput: bad record or unknown value. (21)

TEMP-TABLE with only index being a WORD-INDEX defined against a multi-extent character array field.

CAUSE:

Attempting to create a record in a temp-table that includes a multi extent word-index only:

DEFINE TEMP-TABLE mytable NO-UNDO
FIELD cField AS CHARACTER EXTENT 8
INDEX wIndex IS WORD-INDEX cField.

CREATE mytable.

FIX:

Introduce a dummy field and an index resolves this problem.

DEFINE TEMP-TABLE mytable NO-UNDO
FIELD cField AS CHARACTER EXTENT 8
FIELD iField AS INTEGER
INDEX iIndex iField
INDEX wIndex IS WORD-INDEX cField.

CREATE mytable.