on error it goes to first field in the frame

profresh

New Member
Hi,

I am trying to validate a field while the i take values from the user using set statement.
set a b c d e in a frame x.
when i validate field d on error, i put UNDO,RETRY so that user re-enters the value again. However it goes to the first field in the frame i.e. a. I tried to use prompt-for to hang on to the current field. But somehow it doesn't work. Please suggest.

regards,
 
This is where the Event driven 4GL / ABL is useful.

You require an event trigger:
ON ERROR DO:
/* whatever code statement */
END. /* error */

look at :
APPLY 'ENTRY' TO whicheverFieldWidget requires focus
 
Back
Top