Click or drag to resize

DataObject.NoMethod Method

X#
Defines a dynamic method.

Namespace:  XSharp.XPP
Assembly:  XSharp.XPP (in XSharp.XPP.dll) Version: 2.19
Syntax
 VIRTUAL METHOD NoMethod(
	cName,
	uParams
) AS USUAL CLIPPER
Request Example View Source

Parameters

cName (Optional)
Type: Usual
uParams (Optional)
Type: Usual
This is a dummy parameter. The method will receive an arbitrary number of parameters and will pass these parameters along to the method that is called.

Return Value

Type: Usual
Execution of an undefined method always returns NIL.
Remarks
The method noMethod() is executed whenever an undefined method is called. The implementation of noMethod() in the DataObject class checks to see if a method has been defined with defineMethod. Once a method is defined using defineMethod() then the method is called by NoMethod() and the parameters are passed along.
If a method is not defined then no runtime error is generated but simply a NIL value is returned.
See Also