CreateObject Function | |
Creates an object from a class definition or an Automation-enabled application.
Namespace:
XSharp.VFP
Assembly:
XSharp.VFP (in XSharp.VFP.dll) Version: 2.21
Syntax FUNCTION CreateObject(
cClassName,
_args
) AS Object CLIPPER
[ClipperCallingConventionAttribute(new string[] { ... })]
public static Object CreateObject(
Usual cClassName = default,
Usual _args = default
)
Request Example
View SourceParameters
- 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:
ObjectThe object that was created
See Also