Skip to Content
0
Former Member
Sep 19, 2005 at 11:01 AM

Exception adding events

15 Views

I'm trying to add a filter event to my own form:

Dim oFilters As SAPbouiCOM.EventFilters

Dim oFilter As SAPbouiCOM.EventFilter

oFilters = New EventFilters

oFilter=oFilters.Add(et_ITEM_PRESSED)

oFilter.Addex("MyForm")

SBO_Application.SetFilter(oFilters)

When I do the last instruccion, it gives me an exception "General Failure".

If I use the method oFilter.Add(200000010)(so i change de uid of my form), it doesn't gives me any exception, but i want to refer to my forms with strings, not with numbers.

Can anyone help me? Thanks!