VBScript Tutorial
- VBScript is a script version of visual basic supported by Internet Explore 3.0 and above. VB Script code is interpreted as an script by the browser.
- VBScript uses Visual Basic terms, for example, declaring a variable, writing sub, or function in VB Script is similar to Visual Basic.
- But Visual Basic is programming language for applications; while VB Script is a small script version coded with HTML or ASP documents.
- With VB Script, you can make your web site dynamic and interactive.
- VBScript is particularly valuable when used with Microsoft Web servers to create Active Server Pages (ASP) - a technology that
allows a server-side script to create dynamic content that is sent to the client’s browser.
VBScript Data Types:
- VBScript has only one data type called a Variant which contains either numeric or string information.
- VBScript interprets a variant in a manner that is suitable to the type of data it contains. A Variant behaves as a number when you use it in a numeric context, and as a string when you use it in a string context.
- A Variant can make further distinctions about the specific nature of numeric information. For example,
. Have numeric information that represents a date or a time.
. Have a rich variety of numeric information ranging in size from Boolean values to huge floating-point numbers.
- These different categories of information that can be contained in a Variant are called subtypes.
- Use conversion functions to convert one data type to another. Asc, CBool, CByte, CCur, CDate, CDbl, Chr, Cint, CLng, CSng, CStr, Hex, Oct.
…
Website: www.cs.utoronto.ca | Filesize: 50kb
No of Page(s): 6
Click here to download VBScript Tutorial.
Related Tutorial
Tags: scripting guide, tutorial scripting, vbscript
Comments
Leave a Reply