VBScript CreateObject
Function
The CreateObject function creates an object of a specified type.
Syntax
Parameter | Description |
---|---|
servername | Required. The name of the application providing this object. |
typename | Required. The type or class of the object. |
location | Optional. The location where the object is to be created. |
Example
Example
Creating a Regular Expression Object:
The above example outputs: