Click or drag to resize

DataObject.NoIvarGet Method

X#
Handles assignment operations to and adds undefined instance variables.

Namespace:  XSharp.XPP
Assembly:  XSharp.XPP (in XSharp.XPP.dll) Version: 2.21
Syntax
 VIRTUAL METHOD NoIvarGet(
	cName AS STRING
) AS USUAL
Request Example View Source

Parameters

cName
Type: String
The field name that gets accessed.

Return Value

Type: Usual

Implements

NoIvarGet(String)
Remarks
Returns NIL for an undefined instance variable. This method is executed whenever an undefined instance is accessed. By definition, DataObjects return NIL in such cases. This allows to check for the presence of a value in a dynamic instance variable simply by comparing against the value NIL.
The function IsMemberVar() and the method classDescribe() can be used to determine if a specific member is defined in a DataObject. This works irrespective of whether the member was added dynamically, or was defined statically in a class derived from DataObject.
See Also