>Using old @ GET stuff...
>
>Bunch of fields that make up a scheduling grid are displayed. Each has a VALID that runs some procedure if they are clicked. I need to be able to determine which one has the focus and also would like to change the focus display (very light line around the fields) to be something more pronounced. How would I do this? The fields/GETs are displayed via a loop, but when they are done, the user can move around them with the arrow keys or TAB. I'm thinking that there must be another clause I can include that would handle whether one has the focus. Thanks!
UPDATE3: Ok, the WHEN clause works (thanks Sergey), but how can I cycle through these fields after they are displayed to force the WHEN to fire? I need to click on a button on the form and move through all the fields being created in the code below and fire the WHEN, at which point a criteria is evaluated to know whether to stop or continue moving through the fields.
FOR yy = 1 TO max_room
FOR xx = 1 TO n_lines
@ xx - 1, 8 + but_size * ( yy - 1 ) GET x_room( xx, yy ) ;
PICTURE '@*IV ' SIZE 1, but_size - 1, 0 ;
WHEN call_NextOpen(STR(_CUROBJ)) ;
VALID pullsch()
ENDFOR
ENDFOR
.
.
.
READ CYCLE MODAL