Easy Tutorial
❮ Func Ucase Func Formatpercent ❯

VBScript Programs

VBScript can use two types of programs:


VBScript Subroutines

Subroutines:

Or

Example (IE only)


VBScript Function Programs

Function programs:

Or

Example (IE only)


Calling Programs

This simple function program is called to calculate the sum of two parameters:

Example (IE only)

The function "myfunction" will return the sum of parameters "a" and "b". Here, it returns 14.

When you call a program, you can use the Call statement, as follows:

Or, you can omit the Call statement, as follows:

❮ Func Ucase Func Formatpercent ❯