>Arrays are faster than lists - but I wouldn't warn against using
>ListAppend - and I am not aware of any official MACR recommendation
>against it.
>

Grrrr...Sorry about my last post. I was using MyWay.com's e-mail, and it, 
well, sucks.

What I was trying to say was that, according to the MX docs for ListAppend() 
under the "Usage" section:

"To add an element to the beginning or end of a list, Macromedia recommends 
that you do so with code such as the following, rather than with the 
listAppend or listPrepend functions:

<cfset MyValue = "another element">
<cfif listLen(myList) is 0>
  <cfset myList = MyValue>
<cfelse>
  <cfset myList = myList & ", " & MyValue>
</cfif>"

I was curious as to why they made that recommendation myself. Personally, 
this way is no big deal, but why offer the function?

Regards,
Dave.





~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Reply via email to