You are here: Understanding the Meridian functions > AMCreateObject function

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 Understanding 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.

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. For more information on integrating Visual Basic user interface extensions with VBScript, see the BlueCielo Meridian Developer’s Guide.

Related concepts

Understanding the Meridian functions