Reputation: 998
I have a form that has a basic save button. In the save button is some code to launch the spell check Dialog.
Call uidoc.SpellCheck
Is there a way that I can trap return codes from the dialog? Specifically, I would like the save to stop if the user uses the X in the upper right hand corner to 'Exit' the spell check dialog.
What I am looking for is what type of exits codes the dialog could provide me to stop the save with. I didn't see anything in the documentation and online help for LotusScript is harder to come by than with other languages.
Thanks for the help.
Upvotes: 0
Views: 724
Reputation: 22264
From my experience the SpellCheck method is too high level to offer any useful return codes you can program against. It'll simply run the operation and then return.
Here's a post that might help. Instead of using the uidoc.SpellCheck method, you could optionally enable the "Automatically check mail for misspelling" option which provides the "Cancel Send" button. Then just a call to save/send the document should trigger the spell check to occur, and allow the user to cancel sending if there are spelling errors. That is assuming that's the behavior you're after.
Upvotes: 3