Learning MicroStation VBA

These next four chapters continue with responding to events in MicroStation beginning with the IAttachmentEvents interface. Five events are exposed.
Let's create a new class module named clsAttachmentEvents. You must declare each event implemented by the IAttachmentEvents interface. Add simple Debug.Print statements inside each event to help us understand the order in which events are triggered.
Private Sub IAttachmentEvents_AfterAttach(ByVal _ TheAttachment As Attachment) Debug.Print "AfterAttach"End Sub Private Sub IAttachmentEvents_AfterDetach(ByVal _ TheAttachment As Attachment) Debug.Print "AfterDetach"End Sub Private Sub IAttachmentEvents_AttachmentModified(ByVal _ TheAttachment As Attachment) Debug.Print "AttachmentModified"End Sub Private Sub IAttachmentEvents_BeforeAttach(FileName As String, _ AllowAttachment As Boolean) Debug.Print "BeforeAttach"End Sub Private Sub IAttachmentEvents_BeforeDetach(ByVal _ ...