Title: RE: [cfaussie] Array Element Empty

>
> Hi People,
>
> I have an array that is dynamically populated.
>
> Some times there's up to 44 elements in it, others only 36.
>
> I'm stuct determining when an element doesn't exist, and then
> not to try and output it.
>
> I've tried
> <cfif IsDefined(nswArray[37]) AND nswArray[37] NEQ "">
>     #nswArray[37]#
> </cfif>
>

<cfif (ArrayLen(nswArray) GTE 37) AND Len(Trim(nswArray[37]))>
        <cfoutput>#nswArray[37]#</cfoutput>
</cfif>


> That failed
>
> Suggestions please, the brain will not go into gear this morning.
>
> petcol
>
>
>
> ---
> You are currently subscribed to cfaussie as:
> [EMAIL PROTECTED] To unsubscribe send a blank
> email to [EMAIL PROTECTED]
>
> MXDU2004 + Macromedia DevCon AsiaPac + Sydney, Australia
> http://www.mxdu.com/ + 24-25 February, 2004
>

---
You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]
MXDU2004 + Macromedia DevCon AsiaPac + Sydney, Australia
http://www.mxdu.com/ + 24-25 February, 2004
______________________________________________________________________
This email, including attachments, is intended only for the addressee
and may be confidential, privileged and subject to copyright.  If you
have received this email in error, please advise the sender and delete
it.  If you are not the intended recipient of this email, you must not
use, copy or disclose its content to anyone.  You must not copy or 
communicate to others content that is confidential or subject to 
copyright, unless you have the consent of the content owner.



Reply via email to