Declaring variables in ASP

Posted on 16. Nov, 2007 by in Archive 782 views

To declare some variable we use the key word Dim and then the name of our variable.
Ex. Dim Tutorials

The name of variable should always begin with a letter, in the name of variable cannot be spaces (if we wanna
write the name of varible with two words we use _ symbol).
The name of variable cannot contain more than 255 signs.
For variables we cannot use already reserved words (keywords of ASP code)

Ex.

<%
 Dim intNumber
 intNumber=5
 intNumber=intNumber + 1
 Response.Write intNumber
%>

One Response to “Declaring variables in ASP”

  1. timur senga

    13. Jun, 2009

    It was interesting to read…you have some great information on your blog. Your insight and expertise would be a welcome addition to our community, i hope you will consider joining :-)

Leave a Reply

Get Adobe Flash playerPlugin by wpburn.com wordpress themes