RE: Scripting Error
The reason you are getting the error is if the variable has not been assigned then .Close is not a valid method.
You do not need to actually close any windows on Uninitialize because the three instances where this is called are the following:
- User signs out
- User disables script
- Another script is imported
If one of these instances occurs the script engine is stopped and all windows are closed.
Also when you are closing a window you need to pass a valid exit code.
This post was edited on 04-12-2009 at 01:16 AM by matty.
|