RE: How to test if a variable is an array
From: Mark (Mark_at_discussions.microsoft.com)
Date: 02/25/05
- Next message: Thomas Ganss: "Re: Exe's & App's"
- Previous message: Hans Kristiansen: "Printing a file containing control codes straight to the printer (programmatically)"
- In reply to: Subhash: "How to test if a variable is an array"
- Next in thread: Olaf Doschke: "Re: How to test if a variable is an array"
- Reply: Olaf Doschke: "Re: How to test if a variable is an array"
- Messages sorted by: [ date ] [ thread ]
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.
- Next message: Thomas Ganss: "Re: Exe's & App's"
- Previous message: Hans Kristiansen: "Printing a file containing control codes straight to the printer (programmatically)"
- In reply to: Subhash: "How to test if a variable is an array"
- Next in thread: Olaf Doschke: "Re: How to test if a variable is an array"
- Reply: Olaf Doschke: "Re: How to test if a variable is an array"
- Messages sorted by: [ date ] [ thread ]