Click here to return to the KiXtart HelpDesk main page...

KiXtart Command Reference

OLEGETOBJECT

action

OLEGetObject gets an object either from a file stored on disk, or from a class name, and returns a handle to the object.

syntax

OLEGETOBJECT (mode, “objectname" , “classname”)

parameters

Mode

0

ObjectName specifies a file on disk

1

ObjectName specifies a classname

2

ObjectName specifies a file on disk, and ClassName specifies the class of the object

ObjectName

The filename or the classname of the object you want to create.

ClassName

Optional parameter (only required if Mode = 2) indicating the class of the object to get.

returns

If the function succeeds it returns the handle to the object. If the function fails, it returns 0.