Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

If you make a lot of use of the objGlobal object then you should look to organizing its use in some way. One way is to divide it up into multiple sub-objects by application or usage.

For example, if you did this in you logon script:

     objGlobal.AppA = new Object();

...

 
objGlobal.AppB = new Object();

...

 
objGlobal.AppC = new Object();

...

 

Then in your scripts you could make sure your references do not accidentally interfere with each other.

For example objGlobal.AppA.CurrentCustomer is a different variable to objGlobal.AppB.CurrentCustomer and objGlobal.AppC.CurrentCustomer.

...