cancel
Showing results for 
Search instead for 
Did you mean: 

Error with Application.Messagebox while Eventhandling

Former Member
0 Kudos

Hi,

i've got a problem with Application.Messagebox.

I'm loading a form from xml. after that i send a messagebox. If i click on the ok-button everything works fine.

but if i send a messagebox from the event handling (eg after button_click) the messagebox will be shown, but if i click 'ok' my application will be shut down.

changing the status bar by application.statusbar.settext works.

I hope you understand what my problem is.

Looking forward to your help.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

I read somwhere to put this code at the top of the event handling routine... Anyway I don't use it in my code.

Private Sub sboApplication_ItemEvent(ByVal FormUID As String, pVal As SAPbouiCOM.IItemEvent, BubbleEvent As Boolean)

On Error GoTo ItemEventErrHandler

<b>

If pVal.FormType <> 0 Then 'Not a MsgBox Event

'Process event here

End If

</b>

Hope this helps

Answers (0)