Re: How to test if a variable is an array

From: Paul Pedersen (no-reply_at_swen.com)
Date: 02/26/05


Date: Sat, 26 Feb 2005 11:01:37 -0800

We just know it because we're gurus.

:-)

"Subhash" <Subhash@discussions.microsoft.com> wrote in message
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