tag:blogger.com,1999:blog-19056005.post3824186492805447490..comments2023-08-01T04:33:41.114-07:00Comments on Coldfused?: ListToArray with empty elements - Part IIRupesh Kumarhttp://www.blogger.com/profile/11403172559407967918noreply@blogger.comBlogger4125tag:blogger.com,1999:blog-19056005.post-87524437128221435192012-08-16T15:00:52.270-07:002012-08-16T15:00:52.270-07:00This post still holds up! Had a heck of time pars...This post still holds up! Had a heck of time parsing a csv which had a header row that had two words (user id). All the other fancy tricks can't compare to that great script you wrote! Thanks so much!!Anonymoushttps://www.blogger.com/profile/05569636185649761437noreply@blogger.comtag:blogger.com,1999:blog-19056005.post-27080733521031871622007-08-03T18:15:00.000-07:002007-08-03T18:15:00.000-07:00The code for a CF 7 function is as follows: func...The code for a CF 7 function is as follows:<BR/><BR/> function list2Array(list)<BR/> {<BR/> var i = 0; <BR/> var retlist = ArrayNew(1);<BR/> var arr = list.split('","');<BR/> for(i = 1; i LTE ArrayLen(arr); i=i+1)<BR/> ArrayAppend(retList,arr[i]);<BR/> return retList;<BR/> }Giancarlo Gomezhttps://www.blogger.com/profile/00374959940906125353noreply@blogger.comtag:blogger.com,1999:blog-19056005.post-77730955639417886722007-07-19T11:24:00.000-07:002007-07-19T11:24:00.000-07:00yeah.. It works only on CF 8 because it uses the n...yeah.. It works only on CF 8 because it uses the new syntax which was another of my purpose. For it to work on CF 7, all you need to do is to change the loop construct. i.e the loop should look something like<BR/>for(i = 1; i LE ArrayLen(arr); i = i+1)<BR/>{<BR/>...<BR/>}Rupesh Kumarhttps://www.blogger.com/profile/11403172559407967918noreply@blogger.comtag:blogger.com,1999:blog-19056005.post-85290383058439976872007-06-06T07:42:00.000-07:002007-06-06T07:42:00.000-07:00this only works in CF 8!!!this only works in CF 8!!!Anonymousnoreply@blogger.com