DADiSP Worksheet Functions > Function Categories > ActiveX > Automation Client > CREATEOBJECT
Returns a handle to an ActiveX server object.
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. |
A handle to the object or –1 if an error occurs.
Word = createobject("word.application");
Word.visible = 1;
creates MS word as an ActiveX server and makes Word visible.
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.