IsAssign Function | |
Check whether a particular assign method can be sent to an object.
Namespace:
XSharp.RT
Assembly:
XSharp.RT (in XSharp.RT.dll) Version: 2.21
Syntax FUNCTION IsAssign(
oObject AS Object,
symAssign AS STRING
) AS LOGIC
public static bool IsAssign(
Object oObject,
string symAssign
)
Request Example
View SourceParameters
- oObject
- Type: Object
An object. - symAssign
- Type: String
The assign method name.
Return Value
Type:
Logic
TRUE if the specified assign method is defined for the class of the specified object; otherwise, FALSE.
This example checks if x and y of CLASS MyClass are true instance variables or if they are overridden by an assign:
1CLASS MyClass
2 EXPORT x
3ASSIGN y(a) CLASS MyClass
4FUNCTION Start()
5 LOCAL o AS MyClass
6 o := MyClass{}
7?IsAssign(o,#x)
8?IsAssign(o,#y)
Remarks Examples See Also