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.
Cursor moving to next field on clearing error messages.
-
- Posts: 1796
- Joined: December 5th, 2011, 11:27 pm
- Location: Washington, DC
Re: Cursor moving to next field on clearing error messages.
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;
if Q1 > 5 then
errmsg("Q1 must be less than 5.");
reenter; // <---------
endif;
Re: Cursor moving to next field on clearing error messages.
Thanks Martin. Thanks a ton. Much appreciated .