Home > DeveloperSection > Interviews > What Is The Difference Between the Dim, Public, and Private Statements?

Posted on    March-19-2011 12:00 AM

 VB Script VB Script 
Ratings:
 1 Answer(s)
  1359  View(s)
Rate this:

Dependra Pathak
Dependra Pathak

Total Post:77

Points:385
Posted on    March-19-2011 12:00 AM

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.

Don't want to miss updates? Please click the below button!

Follow MindStick