Cursor moving to next field on clearing error messages.

Discussions about CSEntry
Forum rules
New release: CSPro 8.0
Post Reply
Jayanta
Posts: 9
Joined: July 28th, 2021, 4:04 am

Cursor moving to next field on clearing error messages.

Post 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.
Gregory Martin
Posts: 1777
Joined: December 5th, 2011, 11:27 pm
Location: Washington, DC

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

Post 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;
Jayanta
Posts: 9
Joined: July 28th, 2021, 4:04 am

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

Post by Jayanta »

Thanks Martin. Thanks a ton. Much appreciated 🤗😁.
Post Reply