Good Afternoon.
Rexx panels working fine. When panel loads, the Cursor starts wherever it has been defined.
Question: Is it possible to set the Cursor starting position, based on a condition ?
When I execute the code below, the value of B1 changes (Field1 or Field2) onscreen, however,
the actual blinking Cursor always stays on the topmost screen field.
- Thank you for your help.
)ATTR
)INIT"
VGET (A1 B1 Field1 Field2) PROFILE "
)PROC"
IF (&A1 = TEST)"
.CURSOR = Field1"
&B1 = .CURSOR"
IF (&A1 ¬= TEST)"
.CURSOR = Field2"
&B1 = .CURSOR"
VPUT (A1 B1 Field1 Field2) PROFILE "
&PFKEY = .PFKEY"
)END"