VBScript CreateObject Function
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 »
Complete VBScript Reference Manual