A Tutorial On VBScript

Preface

 

Preface

As the Internet develops very fast, people tend to rely on the web to exchange information. The Static HTML webpages no longer can satisfy their needs for communication because they lack the ability of interacting with users. To address this issue, many laguages like Javascript, PHP, and CGI are devised. VBScript is Microsoft's alternative for Javascript. Very similar to Visual Basic, it provides the easiness of constructing Graphic User Interface, and event-driven mechanism. Using VBScript, we can easily embed all VB elements, such as buttons, textbox, and menus, in a webpage, so that the same functionality can be achieved by just browsing the website.

ASP (Active Server Page) is a special kind of webpage. It becomesmore and more popular because it can use the resource of web server to do computation. ASP can be easily written using VBScript. In this tutorial, I will first give a short introduction on some basics of VBScript programming, then I will demostrate a project in which an ASP (Active Server Page) solution is created using VBScript, to achieve remote data acquisition through serial port of the server.

I assume the readers of this tutorial have some knowledge of the fundamentals of Visual Basic. To write VBScript in HTML, the only software you need is a text editor, such as Notepad. You can also choose to use webpage softwares like Macromedia Dreamweaver, they allow you to see the webpage GUI while editting the HTML.

 
Introduction  
Example Project 1  
Example Project 2  
Application / Conclusion