The CreateObject function creates an object of a specified type.
Parameter | Description |
---|---|
servername | Required. The name of the application that provides the object |
typename | Required. The type/class of the object |
location | Optional. Where to create the object |
Creating a regular expression object:
The output of the code above will be: