If you're going to have holes, you might consider a struct that just happens
to have numeric keys. Then you can use structKeyExists.
Short of that, I think you'd probably have to dereference the array index in
a CFTRY..CFCATCH block, catch the error, and react to that. Wrap it in a
function named 'isArrayElementDefined' or something, and you should be set.
Cheers,
barneyb
> -----Original Message-----
> From: Asim Manzur [mailto:[EMAIL PROTECTED]
> Sent: Monday, June 07, 2004 10:12 AM
> To: CF-Talk
> Subject: IsDefined(Array[element])
>
> how to check is the array element is defined or not
>
> <cfif IsDefined('lineout["#xyz#"]')>
>
> according to the coldfusion documentation it will always
> return false, no matter even the element has a value.
>
> what is the alternate way to see that the element has a value
> or undefined.
>
> thanks.
>
>
>
>
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

