Page 1 of 1

Cursor moving to next field on clearing error messages.

Posted: August 11th, 2021, 7:46 am
by Jayanta
Hi All.

I would like to know if it's possible to retain the cursor on the same field for which error message is displayed.

For instance, error message is triggered for Q1 and by default it asks F8 to clear. On pressing, the cursor moves to next field Q2.

Is it possible that after pressing F8, the cursor stays in Q1?

Kindly help me on the same. Thanks in advance.

Re: Cursor moving to next field on clearing error messages.

Posted: August 11th, 2021, 8:24 am
by Gregory Martin
You need to add a reenter in logic after your error message:
PROC Q1

   
if Q1 > 5 then
        errmsg
("Q1 must be less than 5.");
       
reenter; // <---------
   
endif;

Re: Cursor moving to next field on clearing error messages.

Posted: August 11th, 2021, 10:30 am
by Jayanta
Thanks Martin. Thanks a ton. Much appreciated 🤗😁.