Subject | FirebirdSql.Data.Firebird.Events |
---|---|
Author | rockwithme77 |
Post date | 2003-09-01T08:07:15Z |
Hi,
I had a question about POST_EVENT and register events.
In my procedure I have a line
POST_EVENT('NEW CUST').
In the front end .NET, using FirebirdNETProvider1.5-Alpha1,
I am listening for events as follows:
Public fbEv As FbEvent
fbEv = New FbEvent(conn)
fbEv.RegisterEvents(New String() {"NEW CUST"})
fbEv.QueEvents()
AddHandler fbEv.EventAlert, AddressOf listenEv
End Sub
Public Sub listenEv(ByVal sender As Object, ByVal e As
FirebirdSql.Data.Firebird.Events.FbEventAlertEventArgs)
MsgBox("Customer Created")
End Sub
I am not being able to receive the Event.
Can anyone please tell me what I am doing wrong?
I had a question about POST_EVENT and register events.
In my procedure I have a line
POST_EVENT('NEW CUST').
In the front end .NET, using FirebirdNETProvider1.5-Alpha1,
I am listening for events as follows:
Public fbEv As FbEvent
fbEv = New FbEvent(conn)
fbEv.RegisterEvents(New String() {"NEW CUST"})
fbEv.QueEvents()
AddHandler fbEv.EventAlert, AddressOf listenEv
End Sub
Public Sub listenEv(ByVal sender As Object, ByVal e As
FirebirdSql.Data.Firebird.Events.FbEventAlertEventArgs)
MsgBox("Customer Created")
End Sub
I am not being able to receive the Event.
Can anyone please tell me what I am doing wrong?