Yeah, its true. they're all global. Its not the assignment that makes it global, its the DIMing or lack there-of. But I would suggest you NOT declare vars inside IF statements - i know thats what the manual says you can do, but to be honest, that would confuse the hell out of anybody.

I wouldn't get too worked-up about scope. The only time you should need to consider is with UDF's, just DIM vars local and you should be cool.

-Shawn

p.s. Ron's word is "Hell, I rarely DIM them... I just use them. I'm a bad boy"

[ 08 May 2002, 00:37: Message edited by: Shawn ]