Analysis results

What results can you expect?

Objects

IconDescription
Alt textClass Module
Alt textConstant
Alt textControl
Alt textDesigner
Alt textEvent
Alt textExternal Function
Alt textExternal Sub
Alt textForm
Alt textFunction
Alt textMDI Form
Alt textModule
Alt textControl Project
Alt textEXE Project
Alt textGroup Project
Alt textOLE DLL Project
Alt textOLE Exe Project
Alt textGet Property
Alt textLet Property
Alt textPage Property
Alt textSet property
Alt textSub
Alt textVB Subset
Alt textUser Control
Alt textUser Document
Alt textVariable
Alt textCom CoCLass
Alt textCom Disp Interface Com Interface
Alt textCom Method Com Property Com Get Property Com Put Property Com Put Ref Property
Alt textCom Type Lib Com External Type Lib
Link TypeWhen is this type of link created?
Call
- When calling a VB or a COM function (sub, function, property get, let set, com method, com prop put, prop putref, prop get) except system functions (functions from VB, VBA or VBRUN DLLs)

- When calling a VB or a COM event

- When the return type of a function is not a standard one

Here is a sample that shows one of these links.

Private Sub MySub(i As Integer)

  'Do Whatever

  End Sub

Private Sub Command1_Click()
 
  Dim j As Integer

  MySub (j)

End Sub

This will result in the following view:

Raise
- When raising an event

In the following sample, we have a class (Class1) that defines an event (Gong) and a method (MyMethod). When MyMethod is called, we raise an event.

Event Gong()

Public Sub MyMethod()

RaiseEvent Gong

End Sub

This will result in the following view (includes only event relevant links):

Use

There is also a Form (Form1) that has the button (Command1). Here’s the code of this Form:

Private WithEvents mHandler As Class1

Private Sub Command1_Click()

   Set mHandler = New Class1

   mHandler.MyMethod

End Sub

Private Sub mHandler_Gong()

MsgBox "Gong !"

End Sub

- When declaring a user data-type, link with the non standard members of this user data-type

- When referencing a non standard type member of a user data-type variable

- When accessing a variable

Rely On
- When declaring a variable of a non standard type

- When declaring a function return value of a non standard type

Inherit
- When a user control inherits from a non standard type

In this sample, the user control “UserControl1” is used in the form “Form1”

- When implementing an event using WithEvents statement