You could also just loop from one to the length of the string. Then use mid() 
to populate an array. Not as elegant as split(), but it is documented ;)

> Ah, I had forgotten that cf strings are java string objects
> under the hood.  Calling myString.split("") splits each
> letter of the word into an array.

Just be aware the result of split() is not technically a CF array. So it may 
not behave the way you might expect with some array functions. But since you 
passing the result into arrayCompact, which does return a CF array, that is not 
an issue here.


-Leigh



     

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:337429
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

Reply via email to