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
Private Statement
Public Statement
Sub Statement
STATEMENT: Const
Implemented in version 1.0
Const
The
Const
statement allows you to declare your own constants.
Once you declare a constant, you cannot change the value of that constant. If you try to change the value, you will get an error message (illegal assignment).
Code:
<% Const myconstant = 71.348 %>
Our current interest rate is <% =myconstant %> % per year.
Output:
Our current interest rate is 71.348 % per year.
You can declare several constants at the same time.
Code:
<% Const stringconstant = "Please send money!" someconstant = .277 tigre = "Jaguar" %>
Copyright 1999-2001 by Infinite Software Solutions, Inc. All rights reserved.
Trademark Information