Product : Engine, Version : 4.x, ArticleID : 41023421

HowTo : Is there an event that fire AFTER finish a command ?

Article41023421
TypeHowTo
ProductEngine
Version4.x
Date Added1/30/2004
Submitted byMarco Tugnoli
Keywords

Subject

Is there an event that fire AFTER finish a command ?

Summary

Is there an event that fire AFTER finish a command ?

Solution

At JobEnd event If JobID <>145 (VD_JOBUSERGET) then a command has ended with right mouse click.
At JobError event you can trap if by pressing escape a command finishes.
Private Sub vdraw_JobEnd(ByVal JobID As Long, ByVal StatusCode As Long, ExtraParam As Variant, Cancel As Integer)
    If JobID <> 145 Then MsgBox "Command finished"
End Sub

Private Sub vdraw_JobError(ByVal JobID As Long, ByVal StatusCode As Long, ExtraParam As Variant, Cancel As Integer)
    MsgBox "Command finished"
End Sub