| To read the article online, visit http://www.4GuysFromRolla.com/webtech/faq/Beginner/faq4.shtml |
|
Declaring variables in ASP is simple, especially since all variables are
of type Variant. You don't have to define the variable's type (such as if it's an integer, string, etc.). Rather,
you just declare the variable using the
If you wanted to print out the variables, you could simply do a
Since variables are Variant, you may be wondering how you can tell what, exactly, is in them. There are some built-in functions which help you in this task.
You can explicitly cast the type of a variable when you assign to it. It
is good programming technique to do that! That is because if you have
a variable SomeString with the value "5" in it, and you want to assign
it to a variable Here is an example:
|
| Article Information | |
| Article Title: | Variables in ASP |
| Article Author: | Scott Mitchell |
| Article URL: | http://www.4GuysFromRolla.com/webtech/faq/Beginner/faq4.shtml |
Copyright 2010 QuinStreet Inc. All Rights Reserved.
Legal Notices, Licensing, Permissions, Privacy Policy.
Advertise | Newsletters | E-mail Offers