CreateObject

Instantiates an object on the application server on which an application has been opened. Use CreateObject to instantiate server-side objects that you develop. For example, you can use CreateObject to instantiate server-side Application Components (ACMs).

Tip:

To instantiate a server-side object without opening an application, use HsxClient.CreateObjectOnServer, which takes the application server name as an argument. For details, see CreateObjectOnServer.

Syntax

<HsvSession>.CreateObject(bstrClassIDOrProgID)

Argument

Description

bstrClassIDOrProgID

String (ByVal). The name of the object to be instantiated.

Return Value

Object. CreateObject returns an instance of the object identified by the argument.

Example

CreateObject is used in the example for the HsvStarSchemaACM method EnumRegisteredDSNs.