Click or drag to resize

IsArray Function

X#
Determine if a value is an array.

Namespace:  XSharp.RT
Assembly:  XSharp.RT (in XSharp.RT.dll) Version: 2.19
Syntax
 FUNCTION IsArray(
	uValue AS USUAL
) AS LOGIC
Request Example View Source

Parameters

uValue
Type: Usual
The value to examine.

Return Value

Type: Logic
TRUE if the value is an array; otherwise, FALSE.
Remarks
Examples
This example uses IsArray() to determine a course of action:
X#
1DO CASE
2    CASE IsArray(uValue)
3        AEval(uValue, cbBlock)
4    CASE IsString(uValue)
5        SEval(uValue, cbBlock)
6    OTHERWISE
7        Eval(cbBlock)
8ENDCASE
See Also