The VBScript Network and Systems Administrator's Cafe

Sep 6 2008   11:41PM GMT

VBScript Statements: Explanation of the Public Statement



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

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

Comment on this Post

Leave a comment: