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

Questions by JohnMathew   answers by JohnMathew

Showing Answers 1 - 1 of 1 Answers

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.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions