Declaring variables in ASP

ASP // 632 views Add comments

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
%>

[Slashdot] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google] [StumbleUpon]

Leave a Reply

WP Theme & Icons by N.Design Studio
Entries RSS Comments RSS Login