Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

VBScript CreateObject Function

VBScript CreateObject Function


VBScript reference manual Complete VBScript Reference Manual


The CreateObject function creates an object of a specified type.

Syntax

CreateObject(servername.typename[,location])

Parameters Description
servername Required. The name of the application providing the object.
typename Required. The type or class of the object (type/class).
location Optional. Where to create the object.

Example

Example

Create a regular expression object:

The example above produces the following output:

Th##s is a beautiful day

Try it »


VBScript reference manual Complete VBScript Reference Manual