Yea. I always forget about ValueList.
-----Original Message----- From: Justin Scott [mailto:[email protected]] Sent: Friday, February 20, 2009 11:34 AM To: cf-newbie Subject: Re: Translate from Classic ASP to CF Mike Chytracek wrote: > <cfloop query="getStuff"> > <cfset tmp = ListAPpend(clientReglist, eventId)> > <cfset eventIdArray = ArrayAppend(eventIdArray, eventId)> > </cfloop> ColdFusion has built in functions that are more efficient than looping over the query one record at a time: <cfset clientReglist = valueList(getStuff.eventId)> <cfset eventIdArray = listToArray(clientRegList)> -Justin ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;207172674;29440083;f Archive: http://www.houseoffusion.com/groups/cf-newbie/message.cfm/messageid:4381 Subscription: http://www.houseoffusion.com/groups/cf-newbie/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.15
