Kbase 15035: AUTO-RETURN attribute behavior with Subscripted fields
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  10/05/1998 |
|
AUTO-RETURN attribute behavior with Subscripted fields
AUTO-RETURN attribute behavior
The behavior of the AUTO-RETURN attribute is different when used on
non-subscripted fill-ins as compared to subscripted fill-ins. This is
due to the fact that the AUTO-RETURN attribute is compiled at
run-time.
Progress can correctly set this attribute for the non-subscripted
fill-ins, but it can't set it for subscripted fill-ins because it
can't evaluate a statement like "UPDATE b[i] AUTO-RETURN ..." until
run-time, since the value of i is unkown at compile time.
The only work-around is to UPDATE the variable without a subscript.
In the following code example, "UPDATE b AUTO-RETURN ..." will display
all five of the subscripted fill-ins, and AUTO-RETURN will work
properly. It is NOT possible to UPDATE the subscripted fill-ins
individually and have the AUTO-RETURN attribute work properly.
SESSION:DATA-ENTRY-RETURN=TRUE.
define var b as integer format 99 extent 5.
form
b[1] at 5
b[2] at 10
b[3] at 15
b[4] at 20
b[5] at 25
with frame abc centered row 7.
UPDATE b AUTO-RETURN with frame abc.
display "done"
with frame cba
centered row 12.
Progress Software Technical Support Note # 15035