Kbase P60288: No error when ASSIGNing a value to a negative array element in a database
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  7/20/2010 |
|
Status: Unverified
SYMPTOM(s):
No error when ASSIGNing a value to a negative array element in a database
Error 26 is generated when DISPLAYing updated data in the database
** Array subscript <value> is out of range. (26)
Element to be updated is based on a variable, for example:
element = -10.
arrayName[element] = <value>.
Error 26 is generated when attempting a similar operation with a 4GL variable with extents
FACT(s) (Environment):
Progress 9.1x
CAUSE:
Bug# 20031222-002
FIX:
Upgrade to OpenEdge 10.0B or later
To workaround the issue, ensure that the variable being used to identify the array element is checked for errors. Values of zero or less should be disallowed.
For example:
IF element < 1 THEN
<Process Errors Here>.
ELSE
arrayName[element] = <value>.