Here's a little something to delete all blank array elements (both undefined
and blank strings):

<cfscript>
 aTemp = ArrayNew(1);
 aTemp[2] = '';

 myArray.RemoveAll(aTemp);
</cfscript>

Here's an article on the underlying java methods of the array object which
include the removeAll method:

http://coldfused.blogspot.com/2007/01/extend-cf-native-objects-harnessing.html


HTH

Dominic

-- 
Blog it up: http://fusion.dominicwatson.co.uk


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;160198600;22374440;w

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:299272
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to