STATEMENT:  Private

Implemented in version 1.0
 
Private
 
The Private statement is used to declare a new variable or array. You can declare more than one variable and/or array at a time. Memory is also allocated. You cannot declare a variable and assign a value to it at the same time.

If declared within a script, the results are the same as using Dim or Public, the private variable is available for use in the entire script. If declared in a Class, the private variable or array is not available as a public property of the Class.
 
Code:
<%
Private  MyNumber
%>

<%
' First declare
Private  MyNumber
' Then assign a value
MyNumber = 1895.405
%>

<%
Private  SomeNumber, MyVar, AnotherString
%>


Copyright 1999-2004 by Infinite Software Solutions, Inc. All rights reserved.
Trademark Information