How You Can Purge Database Events
The PurgeDBEvent method lets you remove database events from a frame's event queue. The syntax follows:
integer = GhostExec.PurgeDBEvent([dbeventname =
varchar(256)])
This method removes the database event specified in the dbeventname parameter from the frame queue. If you do not include this parameter, the method removes all of the database events on the frame's queue. When the method completes, it returns the number of events that it removed.