Analyze the difference among local module-level and global variables and explain how ActiveX DLLs are created?

1 answer

Answer

1209691

2026-04-12 08:46

+ Follow

Local Variable

A Local variable is a variable whose scope is limited to the Block of the Subroutine defining it.

Private Sub Command1_Click

Dim a as integer

End Sub

Module Level Variable

A Module Level variable is a variable whose scope is limited to the Form Module defining it.

Public Sub Command1_Click

Dim a as integer

End Sub

Global Level Variable

A Global Level variable is a variable whose scope can be limited to the entire project defining it.

Private Sub Class_Initialize ()

Dim a As Integer

End Sub

ReportLike(0ShareFavorite

Copyright © 2026 eLLeNow.com All Rights Reserved.