|
| Microsoft's Visual Basic Scripting Edition is a scaled down version of Visual Basic. While it doesn't offer the functionality of Visual Basic, it does provide a powerful, easy to learn tool that can be used to add interaction to your web pages. If you are already experienced in either Visual Basic or Visual Basic for Applications, you will find working with VBScript easy and should be immediately productive. Don't be concerned if you haven't worked in another version of Visual Basic. VBScript is easy to learn, even for the novice developer. |
| |
| Introduction |
| Microsoft's Visual Basic Scripting Edition is a scaled down version of Visual Basic. While it doesn't offer the functionality of Visual Basic, it does provi... |
| How to |
| Adding VBScript to Web Pages Scripting languages, like JavaScript and VBScript, are designed as an extension to HTML. The web brows... |
| Where to |
| Where to Put the VBScript Scripts in a page will be executed immediately while the page loads into the browser. This is not always ... |
| Working With Variables |
| A variable is a named location in computer memory that you can use for storage of data during the execution of your scripts. You can use variables to: ... |
| Arrays |
| The VBScript language provides support for arrays. You declare an array using the Dim statement, just as you did with variables: Dim Sta... |
| VBScript Procedures |
| We have two kinds of procedures: The Sub procedure and the Function procedure. Sub procedure A sub procedure is a series of s... |
| Conditional Statements |
| VBScript allows you to control how your scripts process data through the use of conditional and looping statements. By using conditional statements you can ... |
| For Next Loop |
| For...Next Loop VBScript uses the For…Next structure for creating incremental loops. There are a few keyword variations... |
| While Loop |
| While Loop The VBScript While Loop executes code while a condition is true. Example <script type="text/vbscr... |
| Comments |
| Comments are used to leave yourself notes or to mark a piece of code so that it doesn't get executed. In VBScript the comment system is extremely simple bec... |
| Date |
| To display the date using VBScript, you use the VBScript date() function. date() VBScript Date Code To display this to... |
| MsgBox |
| The MsgBox function displays a message box, waits for the user to click a button, and returns a value that indicates which button the user clicked. ... |
|
|