- Trained on our vast library of engineering resources.
Learning MicroStation VBA

Chapter 23: Responding to MicroStation Attachment Events

These next four chapters continue with responding to events in MicroStation beginning with the IAttachmentEvents interface. Five events are exposed.

The IAttachmentEvents Interface

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 _         ...

UNLIMITED FREE ACCESS TO THE WORLD'S BEST IDEAS

SUBMIT
Already a GlobalSpec user? Log in.

This is embarrasing...

An error occurred while processing the form. Please try again in a few minutes.

Customize Your GlobalSpec Experience

Category: Project Management Services
Finish!
Privacy Policy

This is embarrasing...

An error occurred while processing the form. Please try again in a few minutes.