DataObject.NoIvarPut Method | |
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 NoIvarPut(
cName AS STRING,
uValue AS USUAL
) AS VOID
public override void NoIvarPut(
string cName,
Usual uValue
)
Request Example
View SourceParameters
- cName
- Type: String
The field name that gets assigned. - uValue
- Type: Usual
The value of an assignment.
Implements
NoIvarPut(String, Usual)Remarks
If a message is sent to an instance of this class for which no corresponding instance variable exists,
then NoIvarPut() is executed. The method receives the name of the instance variable in the <cName> parameter,
and the value to be assigned in the <uValue> parameter. NoIvarPut() first creates the instance variable and then assigns
the value passed. Because it now exists, future access to the instance variable no longer causes NoIvarPut() to be executed.
Instead, the operation is handled in the same way as for a static instance variable. The function IsMemberVar() can be used to
test for the existence of an instance variable added via NoIvarPut(). In addition, the method :classDescribe() also reflects
dynamic instance variables.
See Also