Analysis results

What results can you expect?


Icon Description
Alt text Class Module
Alt text Constant
Alt text Control
Alt text Designer
Alt text Event
Alt text External Function
Alt text External Sub
Alt text Form
Alt text Function
Alt text MDI Form
Alt text Module
Alt text Control Project
Alt text EXE Project
Alt text Group Project
Alt text OLE DLL Project
Alt text OLE Exe Project
Alt text Get Property
Alt text Let Property
Alt text Page Property
Alt text Set property
Alt text Sub
Alt text VB Subset
Alt text User Control
Alt text User Document
Alt text Variable
Alt text Com CoCLass
Alt text Com Disp Interface Com Interface
Alt text Com Method Com Property Com Get Property Com Put Property Com Put Ref Property
Alt text Com Type Lib Com External Type Lib
Link Type When is this type of link created?
- 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:

- 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):


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


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

- 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