CreateObject
- create COM object

Miscellaneous functions
(AmiBroker 3.80)


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:

See updated/extended version on-line.