Free since 2005 · No login required
AT

Academic Tutorials

Learn at your own pace

site-mobile-top-banner · 320x50

What are the differences between the Dim, Public, and Private Statements in VBScript?

Private statement variables are available only to the script in which they are declared. Public statement variables are available to all procedures in all scripts. Variables declared with Dim at the script level are available to all procedures within the script. At the procedure level, variables are available only within the procedure.