How can I delete an array that has empty values?
I have an array that has many elements. I want to loop through the array and delete an array that has empty elements.
For example, I tried this and it doesn't delete any empty arrays:
Now if the third and seventh array has empty elements how can I delete those arrays?
Thanks.
[sub]
____________________________________
Just Imagine.
[sub]
I have an array that has many elements. I want to loop through the array and delete an array that has empty elements.
For example, I tried this and it doesn't delete any empty arrays:
Code:
<cfloop index="OfferCounter1" from="1" to="#Arraylen(OfferArray)#">
<cfif OfferArray[OfferCounter1] is 0>
<cfset OfferArray = arraydeleteat(OfferArray, 1)>
</cfif>
</cfloop>
Now if the third and seventh array has empty elements how can I delete those arrays?
Thanks.
[sub]
____________________________________
Just Imagine.
[sub]