Yes, but expecting a global to possibly be present and then declaring a local could have strange results elsewhere in the script.

It's probably best to use
 Code:
If Not Isdeclared(Var) Global Var EndIf


Glenn
_________________________
Actually I am a Rocket Scientist! \:D