Click or drag to resize

CreateObject Function

X#
Creates an object from a class definition or an Automation-enabled application.

Namespace:  XSharp.VFP
Assembly:  XSharp.VFP (in XSharp.VFP.dll) Version: 2.19
Syntax
 FUNCTION CreateObject(
	cClassName,
	_args
) AS Object CLIPPER
Request Example View Source

Parameters

cClassName (Optional)
Type: Usual
Specifies the class or OLE object from which the new object is created.
_args (Optional)
Type: Usual
These optional parameters are used to pass values to the Init event procedure for the class. The Init event is executed when you issue CREATEOBJECT( ) and allows you to initialize the object.

Return Value

Type: Object
The object that was created
See Also