This may be a dumb question -- Would someone explain why in some cases a script uses DIM to set up variables, and in other cases a script will not have any DIM statements, but will use SET instead. Are these interchangeable? Is one preferred? Thanks!
Assigns an object reference to a variable or property, or associates a procedure reference with an event.
Right out of the documentation.
Scripts without Dim statements that declare each variable have omitted the declaration Option Explicit near the head of the script. Leaving out Option Explicit is considered bad form, since it can lead to many hard-to-debug errors caused by simple typos.
Why not download the MS reference material? I'd be lost without it.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.