Hi All
How to deactivate ESC Key at a Form. There's some checking on the credit Limit in this form once the user Press OK.. But users can bypass this checking by Pressing ESC Key/ by close (X) the form which i should not allow... How to deactivate ESC key in the form
Awaits the reply...
0
Answers
first: call the the Form in Lookupmode from other form like this
Other way is programming in the Form "YourFormIdOrName" self.
BUT NOTE:
ESC IS LIKE LOOKUPCANCEL :!:
Regards
But be careful. If you don't create at least one exit condition, you won't be able to exit the form and NAV. You'll have to exit NAV by terminating the process.
I couldn't compile my form (it was closing, asking want to send error report etc) after i put your coding as it is...then i made some small changes as per below and got what i want...
IF (Vact = ACTION::LookupOK) THEN
EXIT(TRUE) ELSE
BEGIN
MESSAGE('You must press OK');
EXIT(FALSE);
END;
I took out the
IF(CurrForm.LOOKUPMODE = CurrForm.LOOKUPMODE::YES) , other parts all reamin same...
Thanks a million... =D>