Subject Re: [IBO] OnLoseFocus question
Author Geoff Worboys
> When the user clicks on Yes or No the MessageDialog appears twice
> 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 ?

I am really not certain, but I am guessing that you are catching
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
Exit;
<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.

hth

--
Geoff Worboys
Telesis Computing