I would like to intercept the copy button and check two fields before allowing the copy. In the PreCopy embed I have the following:
If UPPER(Spe:Path_Complete) = 'NO' OR Spe:Path_Complete = ''
Case Message('Pathology not complete.|Please complete pathology before copying.', 'Warning', Icon:Exclamation, Button:OK, Button:OK, 1)
Of Button:OK
cycle
End
End
The compiler complains about the cycle statement, even though the help docs on Case Message show the use of cycle. I have also tried break and return. What is the proper way to stop the conditionally copy?
Thanks,
Jeff