CREATEOBJECT

Purpose:

Returns a handle to an ActiveX server object.

Syntax:

CREATEOBJECT("objname", "license", "manifest")

"objname"

-

A string, the name of the ActiveX object.

"license"

-

Optional. A string, the license text for a licensed control.

"manifest"

-

Optional. A string, the full path to a manifest file.

Returns:

A handle to the object or 1 if an error occurs.

Example:

Word = createobject("word.application");

Word.visible = 1;

 

creates MS word as an ActiveX server and makes Word visible.

Remarks:

CREATEOBJECT starts an ActiveX object as a server. Once connected, any methods or properties supported by the object can be invoked, set or queried. Use GETOBJECT to connect to a server that is already running.

 

Some controls may require an explicit "license" string. Do not specify or set to "" for no license.

 

If "manifest" is specified, the manifest file is used instead of the Registry for registration free COM.

 

See the SPL\ACTIVEX directory for more examples of ActiveX routines.

See Also:

CASTVARIANT

CASTVARIANTARRAY

GETCONTROL

GETOBJECT

ISOBJECT

REGISTERCONTROL

REGISTEREVENT

RELEASE

UNREGISTEREVENT