Click or drag to resize

IsArray Function

Determine if a value is an array.

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

Parameters

uValue
Type: Usual
The value to examine.

Return Value

Type: Boolean
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