Kbase P60289: Workaround: No error when ASSIGNing a value to a negative ar
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  21/07/2010 |
|
Status: Unverified
FACT(s) (Environment):
Progress 9.1x
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
CAUSE:
No known cause at time of writing
FIX:
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>.