Re: How to test if a variable is an array

From: Fernando D. Bozzo (fdbozzo_at_ezrs.com)
Date: 02/25/05


Date: Fri, 25 Feb 2005 07:15:37 +0100

Test and error, not in help :-)

-------

"Subhash" <Subhash@discussions.microsoft.com> escribió en el mensaje
news:9ABE9215-55B3-4B2E-9548-DE9EEE7FD167@microsoft.com...
> 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