AMCreateObject Function

Creates and returns a reference to an object that is provided by an automation server. For more information about using the AMCreateObject function, see Automation Objects.

Syntax

AMCreateObject(ProgID As String, [OnServer As Boolean = False]) As Object
Parameters
Name Description

ProgID

A combination of the automation server name and the class name of the object to create.

OnServer

If this parameter is True, the object is created on the Meridian server instead of on the client computer. This parameter is meaningless in PowerWeb because the server is also the client.

Remarks

The normal VBScript CreateObject function is suitable for creating automation objects that do not act upon Meridian objects. For access to Meridian objects, use AMCreateObject instead, which works the same as CreateObject but also passes the current Repository object to the IAMCommandSetInitialize interface of the automation server.

2023