VBScript: Introduction

Code:

ZD77-703

Series:

Computer Professional

Duration:

2 days

VBScript & the Web
VBScript Popularity
VBScript Defined
Platform or Host Dependence
Scripting Languages

VBScript Basics
Embedding VBScript in HTML
VBScript to Display Information
Hiding VBScript from Older Browsers
Code Documentation & Formatting

Variables, subtypes & Constants
Variable Defined
Declaring Variables
Naming Variables
Variants & Subtypes
Assigning Values to Variables
Determining Variant Subtype
Data Subtype Conversion
Numeric & Literal Constants

Arrays
Groups of Similar Variables
One-Dimensional Arrays
Multi-Dimensional Arrays

VBScript Operators
VBScript Operators
Arithmetic Operator Precedence
Comparison Operators
Logic Operators
String Concatenation
VBScript Procedures
Procedures
Subroutine Procedures
Scope of Variables
Function Procedures
Randomize & RND

Program Control & Structure
Control Statements
Four Control Structures
Using Loops
Topic title

Strings & Numbers
Strings
Formatting Numbers

Message & Input Boxes
Message Box
Input Boxes

Dates & Times
Dates & Times
Splitting Up Dates & Times
Page Updates

The Document Object Model
What Does VBScript Manipulate?
History & Background of the DOM
Properties, Methods, Events & Collections
Internet Explorer 5.x DOM

Event Handlers
Top-Down vs. Event-Driven Programming
Mouse Events
Keyboard Events
Validation & Error Handling

Course specifications
Course number: 077-703
Course length: 2 days

Course description

Overview:

Students will learn to use or create VBScript variables, arithmetic and logical operators, built-in and custom functions, and conditional statements and loops, as well as understand variant sub-types.

Prerequisites:

A working knowledge of advanced-level HTML. Programming experience is helpful, but not required.

Delivery method:

Instructor-led, group-paced, classroom-delivery learning model with structured hands-on activities.

Benefits:

Students will learn how to turn their Web pages from static text and images into functional, interactive, and dynamic communications and e-commerce tools.

Target student:

Students enrolling in this course should understand the Windows user interface, Windows-based applications, and be proficient with advanced-level HTML.


VBScript Introduction

Performance-based objectives

Lesson objectives help students become comfortable with the course, and also provide a means to evaluate learning. Upon successful completion of this course, students will be able to:
  • Define VBScript and describe the advantages of using it in Web pages.
  • Embed VBScript code in an HTML document, hide the VBScript code from browsers that lack a VBScript interpreter, and insert comments into VBScript code.
  • Define variables, name them appropriately, and demonstrate implicit and explicit declarations of variables.
  • Declare arrays and use them in scripts.
  • Use the four types of VBScript operators and produce specific results by demonstrating their precedence.
  • Insert functions, subroutines, and Event Procedures into VBScripts and reduce programming effort by using VBScript's predefined procedures.
  • Write code that makes decisions based on existing conditions using control structures and loops.
  • Format numbers and manipulate the variant subtype String, using some predefined functions.
  • Enable communication with Web page visitors using Message and Input boxes.
  • Extract date and time information from the client computer, format it, and display the date and time of the last update on the Web page.
  • Use the DOM to control the layout of HTML pages, add effects, and get information from users.
  • Use functions to handle Windows mouse and keyboard events, validate user input, and handle run-time errors.