| Home | Previous Lesson: Communication between Objects Next Lesson: Referencing Window Variables Directly |
As discussed in the previous section, a global variable can be accessed by any object in an application. This is the easiest way to pass values between objects, but as we've said before, they should be used sparingly.
Unless you adhere to a strict set of naming convention, global variables can cause problems when integrating modules developed by more than one development team. Another disadvantage is that they can be changed from anywhere in the application and since they exist throughout the duration of an application, you may not be using the memory efficiently.
| Home | Previous Lesson: Communication between Objects Next Lesson: Referencing Window Variables Directly |