Site icon Pathshala Nepal

Write the differences between COMMON SHARED and DIM SHARED.

file handling
Online Calculator

Write the differences between COMMON SHARED and DIM SHARED.


1 Answer


COMMON SHARED DIM SHARED
IT is used in the main module and may be used for both variables and arrays. It is used only in the main module to define and share arrays.
Common Shared declares (and defines) also a global variable as above, and in addition, it can be shared between several code modules Dim Shared declares (and defines) a global variable inside one code module.
Topics from Computer
Related Questions