RE: How to test if a variable is an array

From: Mark (Mark_at_discussions.microsoft.com)
Date: 02/25/05


Date: Fri, 25 Feb 2005 08:59:06 -0800

Hi Subhash:

You can also use this:

IF VARTYPE( ALEN(aArray)) = "N"
    *-- It's an array
ELSE
    *-- It's ain't an array
ENDIF

Mark

"Subhash" wrote:

> I want to to test if a variable is an array or not. None of the functions
> TYPE or VARTYPE provide this feature. They test for every other datatype
> except for the array type.
>
> Does anyone suggest how to achieve this.
>
> Subhash.