|Subject||Re: [IBO] OnLoseFocus question|
> When the user clicks on Yes or No the MessageDialog appears twiceI am really not certain, but I am guessing that you are catching
> und then raises the exception 'Can't post/Cancel current Row'. When
> the user clicks on Cancel the Dialog appears every time again. What
> am I doing wrong ?
things in an uncertain state.
My first recommendation would be to put a check around your code to
ensure that it will not try to call itself twice...
if InRecieveProcessing then
<the rest of your code>
I dont know if this will stop the post/cancel error, but it should
prevent the dialog from executing twice.
If you still end up with a post/cancel error then the focus change
must be catching the dataset in an inappropriate state. In that case
my usual response is to post a message back to the window, so that I
can do the processing after the current process has completed.