J7dSX‖Global Statement

Contents
zBDCv‖

# 7Jwha‖Global keyword

rrYQS‖Dimensions a variable or an array at the global level (that is, not within a subroutine or function), so that the variable and the array are valid in all libraries and modules for the current session.

## nP8AE‖Syntax:

    kq4r5‖Global VarName[(start To end)] [As VarType][, VarName2[(start To end)] [As VarType][,...]]

## 5eZkE‖Example:

    Global iGlobalVar As Integer
    Sub ExampleGlobal
        iGlobalVar = iGlobalVar + 1
        MsgBox iGlobalVar
    End Sub

Please support us!