Code Module

Group                Declaration

Description       A Code module implements a code library.

•  Has a set of Public procedures accessible from other macros and modules.

•  These public symbols are accessed directly.

•  May be initialized by a Private Sub Main.

See Also            Class Module, Object Module, Uses, Main.

Example            'A.WWB
'#Language "WWB-COM"
'#Uses "Module1.BAS"
SubMain
    Debug.Print Value '"Hello"
End Sub

'Module1.BAS
'File|New Module|Code Module
'Edit|Properties|Name=Module1
'#Language "WWB-COM"
Option Explicit
Private mValue As String
Property Get Value() As String
    Value = mValue
EndProperty
'this sub is called when the module is first loaded
Private Sub Main
    mValue = "Hello"
End Sub