Re: How to test if a variable is an array

From: Subhash (Subhash_at_discussions.microsoft.com)
Date: 02/25/05


Date: Thu, 24 Feb 2005 19:23:10 -0800

Thanks Olaf, Paul and Fernando. All of these tricks work.

BTW, are these documented anywhere or you just happen to know this.

Thanks again.

Subhash.

"Fernando D. Bozzo" wrote:

> Hi Subhash:
>
> You can use this:
>
> IF TYPE( "ALEN(YourVar,1)" ) = "N"
> *-- Is an array
> ELSE
> *-- Isn't an array
> ENDIF
>
>
> Regards,
>
> Fernando D. Bozzo
> VFP 6/SP5
> ---
>
> "Subhash" <Subhash@discussions.microsoft.com> escribió en el mensaje
> news:7D0D3ADD-B75A-47A1-ADCF-499D48DB809C@microsoft.com...
> > 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.
>
>
>



Relevant Pages