Variable types in ASP

Posted on 18. Nov, 2007 by tutorials007 in Archive 1,453 views

Integer – whole numbers
Integer variables are variables where we put or whole number value.
EX. 3,12,87,-20 are integer variables while 7.6, 5.8, -3.7 are not integer variables.
With term integer goes the terms long and byte.

Floating-point – decimal numbers
In this type of varibles we put decimal values.
EX. 5.3, 6.3, -3.0
In this type of variables we have sub-types – Single and Double.
With double we can show more decimal places.

String – text
This is type of variables where we put our textual values. When we’re writing to the textual variables we must put our value betwen ” and “.
EX. “axynet” “13″ …

Date – date and time
With date variables we manipulate easier with our date and time values.

Boolean
Boolean type of variables can have two conditions – True or False.
We use them to decide which action will be first.

Currency – currency variables
We will use this type of variables to store our currency values cuz we have some specific functions connected to currency.

Variant
Variant type of variables can store value of any type. We will use this when we want to storeĀ  different types of values.

Leave a Reply

Get Adobe Flash playerPlugin by wpburn.com wordpress themes