Option ClassModule Statement

Specifies that the module is a class module that contains members, properties, procedures and functions.

warning

Bu deyim modül içerisindeki çalışan program kodundan önce eklenmelidir.


Parametreler:

This statement must be used jointly with Option Compatible statement or Option VBASupport 1, the former is enabling VBA compatibility mode, while the latter is enforcing VBA support on top of compatibility.

Sözdizimi:

Option ClassModule

Örnek:

Option Compatible
Option ClassModule

' Optional members go here

Private Sub Class_Initialize()
    ' Optional construction code goes here
End Sub ' Constructor
Private Sub Class_Terminate()
    ' Optional destruction code goes here
End Sub ' Destructor

' Properties go here.

' Procedures & functions go here.

Lütfen bizi destekleyin!