Easy Tutorial
❮ Func Cstr Vb Func Datepart ❯

VBScript Examples

Basics

Writing Text with VBScript

Formatting Text with HTML Tags

Functions in the Head Section

Scripts in the Body Section

Variables

Creating a Variable

Inserting a Variable's Value into a Text

Creating an Array

Procedures

Sub Procedure

Function Procedure

Conditional Statements

If...then..else Statement

If...then..elseif Statement

Select Case Statement

Random Link

Loops

For..next Loop

Loop Outputting HTML Headers

For..each Loop

Do...While Loop

Date and Time Functions

Displaying Date and Time

Displaying the Day of the Week

Displaying the Month

Displaying the Current Month and Day of the Week

Countdown to the Year 3000

Adding a Time Interval to a Date

Formatting Date and Time

Is This a Date?

Other Built-in Functions

Uppercase or Lowercase Characters?

Removing Spaces at the End of a String

Reversing Character Order

Rounding a Number

Returning a Random Number

Returning a Random Number Between 0 and 99

Returning a Specified Number of Characters from the Left or Right of a String

Replacing Characters in a String

Returning a Specified Number of Characters from a String

❮ Func Cstr Vb Func Datepart ❯