Features
Ask DevGuru
ASP Resources
Find the Bug
Knowledge Base
Links
Tips of the Week
Tutorials
Products
dgCalendar
dgCharge New!
dgChart New!
dgFileUpload
dgReport New!
dgSort
dgTree
Site
Authoring
Coming Soon
DevGuru Resume
Link to Us
Merchandise
Sponsorships
Testimonials
What's New
Technologies
ADO 2.6
ASP
CSS2
HTML
JavaScript
Jet SQL
Transact-SQL Syntax
VBScript
WML
WMLScript
WSH
XML DOM
All Statements
Dim Statement
Function Statement
Public Statement
ReDim Statement
Set Statement
Sub Statement
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-2001 by Infinite Software Solutions, Inc. All rights reserved.
Trademark Information