IVarPutInfo Function | |
Get information about how a particular instance variable (or assign method) was declared.
Namespace:
XSharp.RT
Assembly:
XSharp.RT (in XSharp.RT.dll) Version: 2.19
Syntax FUNCTION IVarPutInfo(
oObject AS Object,
symInstanceVar AS SYMBOL
) AS DWORD
public static uint IVarPutInfo(
Object oObject,
Symbol symInstanceVar
)
Request Example
View SourceParameters
- oObject
- Type: Object
The object containing the instance variable. - symInstanceVar
- Type: Symbol
The instance variable that you want information about.
Return Value
Type:
DWord
A numeric value that can be interpreted as follows:
wIvarInfo | Description |
---|
0 | Not found |
1 | INSTANCE declaration |
2 | EXPORT declaration |
3 | ACCESS/ASSIGN declaration (Property) |
Remarks
IVarPutInfo() tests for an instance variable or assign method of a given name and returns a numeric value indicating how (or if) the variable was declared.
Examples
This example illustrates the various return values for IVarPutInfo():
1CLASS A
2 INSTANCE x
3 EXPORT y
4ASSIGN z(value) CLASS A
5 z := value
6 RETURN value
1FUNCTION Start()
2 LOCAL o AS A
3 o := a{}
4? IVarPutInfo(o,#x)
5? IVarPutInfo(o,#y)
6? IVarPutInfo(o,#z)
7? IVarPutInfo(o,#none)
See Also