VBScript Language Reference VBScript Data Types

VBScript Language Reference VBScript Data TypesVBScript has only one data type called a Variant. A Variant is a special kind of type that can contain different kinds of information, depending on how it’s used. Because Variant is the only data type in VBScript, it’s also the data type returned all functions in VBScript.

At its simplest, a Variant can contain either numeric or string information. A behaves as a number when you use it in a numeric context and as a string when use it in a string context. That is, if you’re working with data that looks like VBScript assumes that it is numbers and does the thing that is most appropriate numbers. Similarly, if you’re working with data that can only be string data, treats it as string data. Of course, you can always make numbers behave as by enclosing them in quotation marks (” “).

What Is a Variable?
A variable is a convenient placeholder that refers to a computer memory location where you can store program information that may change during the time your script is running. For example, you might create a variable called ClickCount to the number of times a user clicks an object on a particular Web page. Where the variable is stored in computer memory is unimportant. What’s important is that only have to refer to a variable by name to see its value or to change its value. In VBScript, variables are always of one fundamental data type, Variant.

Website: www.cv.ihk.dk | Filesize: 83kb
No of Page(s): 18
Click here to download VBScript Language Reference VBScript Data Types.

Related Tutorial

Tags: , , ,

Comments

Leave a Reply