HomeAboutWeb DesignGraphicDesignPresentationContact

ASP Training 101

Webitcorp: Var Type and Type Name

Var Type and Type Name

Before assigning a value, strName is of type Empty,which is type number 0
Now strName is of typeString, which is type number 8
Now iAge is of typeInteger, which is type number 2

The Code

<%

Response.Write("Before assigning a value, strName is of type ")
Response.Write(TypeName(strName))
Response.Write(",which is type number ")
Response.Write(VarType(strName))
%>
<br />
<%
strName = "xxx"
iAge = 21
Response.Write("Now strName is of type")
Response.Write(TypeName(strName))
Response.Write(", which is type number ")
Response.Write(VarType(strName))
%>
<br />
<%
Response.Write("Now iAge is of type")
Response.Write(TypeName(iAge))
Response.Write(", which is type number ")
Response.Write(VarType(iAge))
%>

 

Home | About | Web Design | Graphic Design | Presentations | Contact | Site Map | del.icio.us+del.icio.us

| Saint Lucie County, Florida | Rockland County, NY | Burgan County, NJ |


Port Saint Lucie Web Development , Graphic Design , Multimedia Presentations , and much more

Valid XHTML 1.0 Transitional

Copyright ©2007

Onenuttyweb.com