Hi,
This is the standard code in Codeunit 311 for checking sales line qty,
IF CheckItemAvail.SalesLineShowWarning(SalesLine) AND GUIALLOWED THEN BEGIN
OK := CheckItemAvail.RUNMODAL= ACTION::Yes;
CLEAR(CheckItemAvail);
IF NOT OK THEN
ERROR(Text000);
END;
When the form is open i have two option Yes or No.
Now i want cancel option on the form also,i.e Yes,No,Cancel.
If cancel is pressed then some process is done.
But if i add / modify the code to as,
OK := (CheckItemAvail.RUNMODAL= ACTION::Yes) or (CheckItemAvail.RUNMODAL= ACTION::Cancel);
i get error message to clear the form first.
How can i check on form the action pressed is Yes or Cancel.
Any Idea.... ](*,)
Regards,
Manish
0
Answers
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!
..calls RUNMODAL twice without clearing it....
Try: Does this help?
Thanks,it worked =D>
Manish
You can mark the topic as solved now.