The VBScript Network and Systems Administrator's Cafe:

Public

Sep 6 2008   11:41PM GMT

VBScript Statements: Explanation of the Public Statement



Posted by: Jerry Lees
Development, VBScript, VBScript Statements, Variable Types, Public

The VBScript Public statement creates a variable, function, subroutine, or class that is available outside the bounds of the scope it was created in and it functions very much like a global variable, except that it can be declared or initialized inside a non0-global code block.

 An example would be:

Public TestVariable