NAME

arrbase - Return the base type of an array

SYNOPSIS

arr.arrbase()

DESCRIPTION

The arrbase() intrinsic method returns the base type of an array. For the packed array types, this is the scalar type. For unpacked array types, arrbase() will return Array.

The arr must be an array, of any array type:

Array List String WideString
PackBool PackChar PackByte PackUbyte
PackShort PackUshort PackInt PackUint
PackLong PackUlong PackHalf PackFloat
PackDouble

RETURN VALUE

Returns a Type that is the base type of the given array

ERRORS

TypeCheck is thrown if arr is not an array
ArgCheck is thrown if any arguments are passed

EXAMPLE

        "Hello".arrbase()
    Char

        [1,2,3].arrbase()
    Int

        {1,2,3}.arrbase()
    Array

SEE ALSO

typeof
isarray
packtype