IsAccess Function | |
Check whether a particular access method can be sent to an object.
Namespace:
XSharp.RT
Assembly:
XSharp.RT (in XSharp.RT.dll) Version: 2.19
Syntax FUNCTION IsAccess(
oObject AS Object,
symAccess AS STRING
) AS LOGIC
public static bool IsAccess(
Object oObject,
string symAccess
)
Request Example
View SourceParameters
- oObject
- Type: Object
An object. - symAccess
- Type: String
The access method name.
Return Value
Type:
Logic
TRUE if the specified access 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 access:
1CLASS MyClass
2 EXPORT x
3ACCESS y CLASS MyClass
4FUNCTION Start()
5 LOCAL o AS MyClass
6 o := MyClass{}
7?IsAccess(o,#x)
8?IsAccess(o,#y)
Remarks Examples See Also