Monday, September 04, 2006

VBScript-VBA for the Web

Visual Basic Script, herein referred to as VBScript or VBS, is Microsoft's answer to Sun's JavaScript. Both are meant to be intertwined in HTML code; both are meant to expand on the client side functionality of the Web, and neither of the two are fully released products. (VBScript is in beta with MS-Internet Explorer 3.0. JavaScript was first implemented in Netscape 2.0.)

http://www.microsoft.com/vbscript
The resource for information on Visual Basic Script is the Microsoft Web site (http://www.microsoft.com/vbscript). Here you can find complete documentation, some sample snippets of VBScript code, and links to sites using VBScript.
Variables
In most languages, variables are an important part of the language, its structure, and its implementation. In VBScript, the variables are all of the same type, Variant.
The Variant type is an "all things to all people" generic data type. Assign it a string, and it acts as a string; assign it a number, and it acts like a number. The following lines are an example of declaring a Variant in VBScript:
The SCRIPT LANGUAGE tag is a proposed addition to the HTML standard and is first implemented in the Microsoft Internet Explorer 3.0 It informs the browser that code, which must be interpreted, is coming and of what type it is. The usual as Variant, (like you would see in a regular Visual Basic program) is omitted because the Variant type is the only one available. Multiple variables per line are allowed-the procedure is to separate each by a comma. The Option Explicit keyword is implemented in Visual Basic Script, and if used, it should appear as the first statement after the