Procedures in Standard Modules

If the procedure name is unique, you don’t need to include the module name in the call. A call from inside or outside the module will refer to that unique procedure. A procedure is unique if it appears only in one place. A procedure is common if it appears in more than one place, for instance, in two different modules.

A call to a common procedure from the same module runs the procedure in that module. For example, a call to CommonName from Module2 will run the CommonName procedure in Module2, not the CommonName procedure in Module1, as shown in the above figure.

A call to a common procedure name from another module must specify the intended module, as shown in figure. For example, if you want to call the CommonName procedure in Module2 from Module1, you must specify the intended module:

Module2.CommonName(arguments)

No comments:

Post a Comment