Click or drag to resize

DataObject.DefineMethod Method

X#
Defines a dynamic method.

Namespace:  XSharp.XPP
Assembly:  XSharp.XPP (in XSharp.XPP.dll) Version: 2.19
Syntax
 VIRTUAL METHOD DefineMethod(
	cName AS STRING,
	uAction AS USUAL
) AS Object
Request Example View Source

Parameters

cName
Type: String
The name of the method to be defined.
uAction
Type: Usual
A Function name or codeblock that must be executed when the method is called.

Return Value

Type: Object
This method returns the DataObject (self).
Remarks
Dynamic methods in X# are called from the NoMethod method inside the DataObject class.
See Also