VBScript Tutorials - Herong's Tutorial Notes
Dr. Herong Yang, Version 4.01
VBScript Tutorials - Herong's Tutorial Notes
Version 4.01
Dr. Herong Yang

Table of Contents

About This Book

Quick Introduction of Visual Basic

  • What Is Visual Basic?
  • Using Visual Basic within Internet Explorer
  • Using Visual Basic within Microsoft Access

Data Types and Literals

  • Data Types
  • Data Literals
  • More on String Literals

Numeric Operations

  • Long Integer Operations
  • Double Floating Number Operations
  • Numeric Operations on Other Data Types

Comparison and Logic Operations

  • Numeric Comparisons
  • Logical Operations

String Operations

  • Concatenation
  • String Comparison Operations

Variables - Declaration and Assignment

  • Variable Declaration
  • Assigning Values to Variables
  • Variable Default Values

Expressions

  • What Is an Expression?
  • Precedences of Operations
  • Expression Example

Statements and Grammar

  • What Is a Statement
  • Types of Statements

Array Declaration and Built-in Functions

  • What Is an Array?
  • Array Variable Declaration
  • Assigning Values to Array Elements
  • Retrieving Values from Array Elements
  • Fixed-Size Array Example
  • Dynamic-Size Array Example
  • "Array" Function and "For Each" Example
  • "Erase" Statements

Conditional Statements

  • "If" Statements
  • "If" Statement Example
  • "Select Case" Statements
  • "Select Case" Statement Example

Loop Statements

  • "For ... Next" Statements
  • "For ... Next" Statement Example
  • "While" Statements
  • "While" Statement Example
  • "Do ... Loop" Statements

Procedures - Functions and Subroutines

  • What Is a Procedure?
  • Defining and Invoking Function Procedures
  • Function Procedure Example
  • Defining and Invoking Sub Procedures
  • Sub Procedure Example
  • Rules of Passing Arguments
  • Example - Passing Arguments by Reference
  • Example - Passing Arguments by Value
  • Passing Array as Arguments
  • Variable Scope in Procedures
  • Example - Variable Scopes

Built-in Functions

  • Math Functions
  • Conversion Functions
  • String Functions
  • Date and Time Functions
  • Array Functions
  • Misc. Functions

Variable Inspection and Numeric Conversion

  • Variable Inspection
  • Variable Inspection Example
  • Parsing Long Integers

References

Key Words: Visual Basic, VB Script, Data Type, Variable, Variant, Array, String, Operation, Expression, If Else, Loop, While, For Each, Procedure, Function, Null, and Conversion.

Dr. Herong Yang, updated in 2006
VBScript Tutorials - Herong's Tutorial Notes - Table of Contents