CreateObject
- create COM object

Miscellaneous functions
(AFL 1.8)


SYNTAX createobject(
RETURNS OBJECT
FUNCTION Creates the instance of "Server.Class" COM object. The return value should be assigned to a variable that is used latter for calling the methods of the object.
Note: this function creates the instance of the object everytime the formula is executed (the object is released automatically at the end of the formula - no explicit freeing is necessary)
EXAMPLE myobj = CreateObject("MyOwnActiveX.Class1");
myobj.Method( 1, 2, Close ); // call the method of myobj COM object
SEE ALSO CREATESTATICOBJECT() function

References:

The CreateObject function is used in the following formulas in AFL on-line library:

More information:

Updated on-line reference