Modules and Namespaces
From REALbasicWiki
Nested modules cannot contain global elements. Suppose you have Module1, and Module2 inside Module1. If Class1 is a class inside Module2, you cannot set the visibility of Class1 to global, and the IDE enforces this.
The same is true for methods of Module2; their visibility can be public or private, but not global. Unfortunately the IDE does not make this clear. To make it clear, know that you cannot call a method Version of Module2 in either of the following ways.
Version()
Module2.Version
Only the following is legal.
Module1.Module2.Version
NOTE: As of 2007R1, you cannot name a module Global. Global became a reserved keyword. You can, however, name a module Globals.
