Re: ColdFusion ignores empty list elements
Maybe that is :)...I just remeber reading it somewhere..I will openly admit to not using Bluedragon in production...yet. I am toying with CFeverywhere apps right now and I am still soaking up all the BD enhancements so maybe I forgot something...I just remembered reading the enahcnements the other day and thinking jeeze thats nice...no need to us the split UDF here. Its particularly nice when reading comma deliminated rows from a csv. Adam H On Mon, 7 Mar 2005 16:47:08 -0500, Vince Bonfanti <[EMAIL PROTECTED]> wrote: > While I think the suggestion of switching to BlueDragon is an excellent one > to consider, the following code works exactly the same on BD 6.2 and CFMX > 6.1: > > > > >#ListLen( list )# >#listGetAt( list, 4 )# > > > As far as I know, all of the list functions work the same on BD as on CFMX. > We did, however add an optional enhancement to the ListToArray() function; > from the BlueDragon 6.2 CFML Enhancements Guide: > >"BlueDragon adds a new third argument to ListToArray(), a boolean > value, which determines whether to include empty list elements in the > resulting array. The default is no, which causes it to operate consistently > with ColdFusion. Consider the following: > > > > >Both ColdFusion and BlueDragon will return an array of 3 elements, > even though there are 4 items in the list, the third of which is empty. Use > the newly available third argument to change this behavior: > > > > >This creates instead an array of 4 elements, with the third being > empty." > > Maybe this is what Adam was thinking of? > > Vince Bonfanti > New Atlanta Communications, LLC > http://www.newatlanta.com > > > > -Original Message- > > From: Adam Haskell [mailto:[EMAIL PROTECTED] > > Sent: Monday, March 07, 2005 8:50 AM > > To: CF-Talk > > Subject: Re: ColdFusion ignores empty list elements > > > > Switch to Bluedragon :) > > > > Also I use the split UDF on CFlib, works very nicely, The > > pure java solution is one of the best Ideas, but we are on > > *sigh* CF 5 so I don't have that luxury personally :) > > > > Adam H > > > > > > On Mon, 07 Mar 2005 06:56:02 -0400, cf coder > > <[EMAIL PROTECTED]> wrote: > > > ex: the list "a,b,c,,,d" has four elements > > > > > > How do I force it to not ignore empty elements? I'm getting > > an error with listGetAt(list,4). Any thoughts? > > > > > > Best regards > > > cfcoder > > > > > ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:197769 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
RE: ColdFusion ignores empty list elements
While I think the suggestion of switching to BlueDragon is an excellent one to consider, the following code works exactly the same on BD 6.2 and CFMX 6.1: #ListLen( list )# #listGetAt( list, 4 )# As far as I know, all of the list functions work the same on BD as on CFMX. We did, however add an optional enhancement to the ListToArray() function; from the BlueDragon 6.2 CFML Enhancements Guide: "BlueDragon adds a new third argument to ListToArray(), a boolean value, which determines whether to include empty list elements in the resulting array. The default is no, which causes it to operate consistently with ColdFusion. Consider the following: Both ColdFusion and BlueDragon will return an array of 3 elements, even though there are 4 items in the list, the third of which is empty. Use the newly available third argument to change this behavior: This creates instead an array of 4 elements, with the third being empty." Maybe this is what Adam was thinking of? Vince Bonfanti New Atlanta Communications, LLC http://www.newatlanta.com > -Original Message- > From: Adam Haskell [mailto:[EMAIL PROTECTED] > Sent: Monday, March 07, 2005 8:50 AM > To: CF-Talk > Subject: Re: ColdFusion ignores empty list elements > > Switch to Bluedragon :) > > Also I use the split UDF on CFlib, works very nicely, The > pure java solution is one of the best Ideas, but we are on > *sigh* CF 5 so I don't have that luxury personally :) > > Adam H > > > On Mon, 07 Mar 2005 06:56:02 -0400, cf coder > <[EMAIL PROTECTED]> wrote: > > ex: the list "a,b,c,,,d" has four elements > > > > How do I force it to not ignore empty elements? I'm getting > an error with listGetAt(list,4). Any thoughts? > > > > Best regards > > cfcoder > > ~| Discover CFTicket - The leading ColdFusion Help Desk and Trouble Ticket application http://www.houseoffusion.com/banners/view.cfm?bannerid=48 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:197761 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
RE: ColdFusion ignores empty list elements
> Or perhaps BD should have the ability to run in > compatibility mode, without > the added changes. Yea, that'd work. Although personally I think it'd be easier to introduce new functions or possibly in this case an additional argument to the function which tells the function whether empty list elements should be included and defaults to false for compatibility. So listfindnocase(mylist,x) would become listfindnocase(mylist,x,",",true) if you wanted to include the empty elements. At this point BD has been around long enough that it's a choice for them between annoying the living hell out of their existing user base by changing the behavior or continuing to alienate their target market with the variance. s. isaac dealey 954.522.6080 new epoch : isn't it time for a change? add features without fixtures with the onTap open source framework http://macromedia.breezecentral.com/p49777853/ http://www.sys-con.com/author/?id=4806 http://www.fusiontap.com ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:197755 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
Re: ColdFusion ignores empty list elements
>>syntax variances between them should be limited >>primarily to _new_ functions and tags I agree with you, but the case of empty values in CF is not syntax variance, the syntax is the same. It is actually a bug, for the least a flaw in the design in ColdFusion. Further more, making the function work properly has no or very little impact on existing applications: 1. if a current application has NO empty values in lists, it will still work the same way; 2. If the progammers already broke their nose on the problem, they have implemented some workaround, and this workaround will still work the same way. 3. If a current application may have some empty list elements in the future, the application will still work properly instead of breaking. So where is the problem? Only in the case a programmer exploited this weird behaviour in purpose, and I do not think there must be a lot of such cases. Allaire never admitted it was a bug, because it was THEIR product, MM never did either, because it is THEIR product, for BlueDragon, it is THEIR product also, but not their language, and there is nothing wrong correcting someone else's bugs. -- ___ REUSE CODE! Use custom tags; See http://www.contentbox.com/claude/customtags/tagstore.cfm (Please send any spam to this address: [EMAIL PROTECTED]) Thanks. ~| Discover CFTicket - The leading ColdFusion Help Desk and Trouble Ticket application http://www.houseoffusion.com/banners/view.cfm?bannerid=48 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:197751 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
RE: ColdFusion ignores empty list elements
Or perhaps BD should have the ability to run in compatibility mode, without the added changes. -Original Message- From: S. Isaac Dealey [mailto:[EMAIL PROTECTED] Sent: Monday, March 07, 2005 1:44 PM To: CF-Talk Subject: Re: ColdFusion ignores empty list elements > This is not a flaw...it is a noted enhancement, one which > I like, and > I think MM should pick up, they could easily add a boolean > value at > the end of list function to disignate if you want to > include blank > entries. I think it is obsurd to use Macromedia's product > as a > measuring stick as to what is a flaw or not...but that is > getting way > too off topic... It would be absurd if there were not a specific ojbective by New Atlanta to market BD as an alternative to MM's server using the same syntax. The list functions are ubiquitous enough to make migrating an application from CF to BlueDragon or vice versa an incredible challenge, which is counterproductive to the objective of marketing it as an alternative. If their intent is to market it as an alternative (which I've always seen in their text), syntax variances between them should be limited primarily to _new_ functions and tags ( for instance) in order to maintain consistency and reduce the number of headaches involved in migrating an application between them. I wouldn't necessarily describe this as a design flaw if it were for instance a minor change in functionality between two versions of an infrequently used tag (cfftp or cfhttp for instance), but this is a drastic difference in the behavior of a collection of functions which are used ad-nauseum in many if not most applications built with CF. Moreover the results of the function not behaving as expected aren't necessarily readily obvious -- a misbehaving page won't always throw an intuitive error which can be easily identified as having a root cause that comes from the list function's altered behavior, and in many cases is liable to result in the insertion of unexpected data into a database or similar issues which have wide-sweeping, "chain-reaction" type effects on an application. "Enhancement" ... maybe... but only if you have never and will never use the same app on MM's CF Server. Which also significantly limits the potential of people designing applications to be cross-platform between them. To the person who just wants to migrate an application with thousands to millions of lines of code to BlueDragon, it's either a gratuitous extra migration headache, or a flat-out deal-breaker for even using BlueDragon. s. isaac dealey 954.522.6080 new epoch : isn't it time for a change? add features without fixtures with the onTap open source framework http://macromedia.breezecentral.com/p49777853/ http://www.sys-con.com/story/?storyid=44477&DE=1 http://www.sys-con.com/story/?storyid=45569&DE=1 http://www.fusiontap.com ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:197750 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
Re: ColdFusion ignores empty list elements
> This is not a flaw...it is a noted enhancement, one which > I like, and > I think MM should pick up, they could easily add a boolean > value at > the end of list function to disignate if you want to > include blank > entries. I think it is obsurd to use Macromedia's product > as a > measuring stick as to what is a flaw or not...but that is > getting way > too off topic... It would be absurd if there were not a specific ojbective by New Atlanta to market BD as an alternative to MM's server using the same syntax. The list functions are ubiquitous enough to make migrating an application from CF to BlueDragon or vice versa an incredible challenge, which is counterproductive to the objective of marketing it as an alternative. If their intent is to market it as an alternative (which I've always seen in their text), syntax variances between them should be limited primarily to _new_ functions and tags ( for instance) in order to maintain consistency and reduce the number of headaches involved in migrating an application between them. I wouldn't necessarily describe this as a design flaw if it were for instance a minor change in functionality between two versions of an infrequently used tag (cfftp or cfhttp for instance), but this is a drastic difference in the behavior of a collection of functions which are used ad-nauseum in many if not most applications built with CF. Moreover the results of the function not behaving as expected aren't necessarily readily obvious -- a misbehaving page won't always throw an intuitive error which can be easily identified as having a root cause that comes from the list function's altered behavior, and in many cases is liable to result in the insertion of unexpected data into a database or similar issues which have wide-sweeping, "chain-reaction" type effects on an application. "Enhancement" ... maybe... but only if you have never and will never use the same app on MM's CF Server. Which also significantly limits the potential of people designing applications to be cross-platform between them. To the person who just wants to migrate an application with thousands to millions of lines of code to BlueDragon, it's either a gratuitous extra migration headache, or a flat-out deal-breaker for even using BlueDragon. s. isaac dealey 954.522.6080 new epoch : isn't it time for a change? add features without fixtures with the onTap open source framework http://macromedia.breezecentral.com/p49777853/ http://www.sys-con.com/story/?storyid=44477&DE=1 http://www.sys-con.com/story/?storyid=45569&DE=1 http://www.fusiontap.com ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:197747 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
RE: ColdFusion ignores empty list elements
True to a degree, except that HTML is declared open and applications are encouraged to implement it if they need the functionality. - Calvin -Original Message- From: Charlie Griefer [mailto:[EMAIL PROTECTED] Sent: Monday, March 07, 2005 12:40 PM To: CF-Talk Subject: Re: ColdFusion ignores empty list elements .but it's not entirely different than a 'new browser' that interprets HTML (even though said browser didn't create HTML) and adds its own proprietary tags. BD is simply an application that interprets CFML (well, compiles...), but added its own proprietary tags (which is a blanket generalization in this case that includes 'fixing' how certain tags/functions operate) i'm pretty much playing devil's advocate here, as i've never quite understood how New Atlanta could get away with essentially recreating ColdFusion (the application server...not the CFML language)...but assumed that since it's happening, it's all on the up and up. /me moves over to cf-community and waits :) On Mon, 7 Mar 2005 12:27:34 -0500, Calvin Ward <[EMAIL PROTECTED]> wrote: > I don't think it is absurd at all, CFML was started and developed by Allaire > and then Macromedia. The only apparent contribution that NewAtlanta has done > was to copy the end user (meaning developer) functionality and attempt to > subvert market-share from the authors and their intended 'heir'. > > All without apparently contributing financially to the actual company that > created CFML, or the one that inherited it directly from the creator. > > That's all just my opinion though :) > > - Calvin > > -Original Message----- > From: Adam Haskell [mailto:[EMAIL PROTECTED] > Sent: Monday, March 07, 2005 11:32 AM > To: CF-Talk > Subject: Re: ColdFusion ignores empty list elements > > This is not a flaw...it is a noted enhancement, one which I like, and > I think MM should pick up, they could easily add a boolean value at > the end of list function to disignate if you want to include blank > entries. I think it is obsurd to use Macromedia's product as a > measuring stick as to what is a flaw or not...but that is getting way > too off topic... > > Adam H > > On Mon, 7 Mar 2005 09:20:37 -0500, S. Isaac Dealey <[EMAIL PROTECTED]> wrote: > > > Switch to Bluedragon :) > > > > If BD's interpretation of the list functions isn't the same as CF's > > (without creating new functions with different names to handle them > > differently) then I'd have to consider that a flaw in BD. > > > > I at one point had a function written to convert lists to arrays and > > include empty elements... > > > > myarray = arraynew(1); > > f = findoneof(",",mylist); > > while (f) { > > if (f is 1) { arrayappend(myarray,""); } > > else { > >arrayappend(myarray,left(mylist,findoneof(",",mylist))); > > } > > mylist = removechars(mylist,1,f); > > f = findoneof(",",mylist); > > } > > > > That's from memory -- haven't used it in a long while -- probably not > > since cf5 ... and all things considered, the Java version is likely > > more efficient. > > > > s. isaac dealey 954.522.6080 > > new epoch : isn't it time for a change? > > > > add features without fixtures with > > the onTap open source framework > > > > http://macromedia.breezecentral.com/p49777853/ > > http://www.sys-con.com/story/?storyid=44477&DE=1 > > http://www.sys-con.com/story/?storyid=45569&DE=1 > > http://www.fusiontap.com > > > > > > > > ~| Discover CFTicket - The leading ColdFusion Help Desk and Trouble Ticket application http://www.houseoffusion.com/banners/view.cfm?bannerid=48 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:197722 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
Re: ColdFusion ignores empty list elements
>>This is not a flaw...it is a noted enhancement, I would even say that the way CF interprets lists IS a flaw. I've never seen any language that ignores empty objects or anything. This was obviously an oversight in the original CF design and it is a good thing if it is corrected in BD. -- ___ REUSE CODE! Use custom tags; See http://www.contentbox.com/claude/customtags/tagstore.cfm (Please send any spam to this address: [EMAIL PROTECTED]) Thanks. ~| Discover CFTicket - The leading ColdFusion Help Desk and Trouble Ticket application http://www.houseoffusion.com/banners/view.cfm?bannerid=48 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:197719 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
Re: ColdFusion ignores empty list elements
but it's not entirely different than a 'new browser' that interprets HTML (even though said browser didn't create HTML) and adds its own proprietary tags. BD is simply an application that interprets CFML (well, compiles...), but added its own proprietary tags (which is a blanket generalization in this case that includes 'fixing' how certain tags/functions operate) i'm pretty much playing devil's advocate here, as i've never quite understood how New Atlanta could get away with essentially recreating ColdFusion (the application server...not the CFML language)...but assumed that since it's happening, it's all on the up and up. /me moves over to cf-community and waits :) On Mon, 7 Mar 2005 12:27:34 -0500, Calvin Ward <[EMAIL PROTECTED]> wrote: > I don't think it is absurd at all, CFML was started and developed by Allaire > and then Macromedia. The only apparent contribution that NewAtlanta has done > was to copy the end user (meaning developer) functionality and attempt to > subvert market-share from the authors and their intended 'heir'. > > All without apparently contributing financially to the actual company that > created CFML, or the one that inherited it directly from the creator. > > That's all just my opinion though :) > > - Calvin > > -Original Message----- > From: Adam Haskell [mailto:[EMAIL PROTECTED] > Sent: Monday, March 07, 2005 11:32 AM > To: CF-Talk > Subject: Re: ColdFusion ignores empty list elements > > This is not a flaw...it is a noted enhancement, one which I like, and > I think MM should pick up, they could easily add a boolean value at > the end of list function to disignate if you want to include blank > entries. I think it is obsurd to use Macromedia's product as a > measuring stick as to what is a flaw or not...but that is getting way > too off topic... > > Adam H > > On Mon, 7 Mar 2005 09:20:37 -0500, S. Isaac Dealey <[EMAIL PROTECTED]> wrote: > > > Switch to Bluedragon :) > > > > If BD's interpretation of the list functions isn't the same as CF's > > (without creating new functions with different names to handle them > > differently) then I'd have to consider that a flaw in BD. > > > > I at one point had a function written to convert lists to arrays and > > include empty elements... > > > > myarray = arraynew(1); > > f = findoneof(",",mylist); > > while (f) { > > if (f is 1) { arrayappend(myarray,""); } > > else { > >arrayappend(myarray,left(mylist,findoneof(",",mylist))); > > } > > mylist = removechars(mylist,1,f); > > f = findoneof(",",mylist); > > } > > > > That's from memory -- haven't used it in a long while -- probably not > > since cf5 ... and all things considered, the Java version is likely > > more efficient. > > > > s. isaac dealey 954.522.6080 > > new epoch : isn't it time for a change? > > > > add features without fixtures with > > the onTap open source framework > > > > http://macromedia.breezecentral.com/p49777853/ > > http://www.sys-con.com/story/?storyid=44477&DE=1 > > http://www.sys-con.com/story/?storyid=45569&DE=1 > > http://www.fusiontap.com > > > > > > > > ~| Discover CFTicket - The leading ColdFusion Help Desk and Trouble Ticket application http://www.houseoffusion.com/banners/view.cfm?bannerid=48 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:197718 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
RE: ColdFusion ignores empty list elements
I don't think it is absurd at all, CFML was started and developed by Allaire and then Macromedia. The only apparent contribution that NewAtlanta has done was to copy the end user (meaning developer) functionality and attempt to subvert market-share from the authors and their intended 'heir'. All without apparently contributing financially to the actual company that created CFML, or the one that inherited it directly from the creator. That's all just my opinion though :) - Calvin -Original Message- From: Adam Haskell [mailto:[EMAIL PROTECTED] Sent: Monday, March 07, 2005 11:32 AM To: CF-Talk Subject: Re: ColdFusion ignores empty list elements This is not a flaw...it is a noted enhancement, one which I like, and I think MM should pick up, they could easily add a boolean value at the end of list function to disignate if you want to include blank entries. I think it is obsurd to use Macromedia's product as a measuring stick as to what is a flaw or not...but that is getting way too off topic... Adam H On Mon, 7 Mar 2005 09:20:37 -0500, S. Isaac Dealey <[EMAIL PROTECTED]> wrote: > > Switch to Bluedragon :) > > If BD's interpretation of the list functions isn't the same as CF's > (without creating new functions with different names to handle them > differently) then I'd have to consider that a flaw in BD. > > I at one point had a function written to convert lists to arrays and > include empty elements... > > myarray = arraynew(1); > f = findoneof(",",mylist); > while (f) { > if (f is 1) { arrayappend(myarray,""); } > else { >arrayappend(myarray,left(mylist,findoneof(",",mylist))); > } > mylist = removechars(mylist,1,f); > f = findoneof(",",mylist); > } > > That's from memory -- haven't used it in a long while -- probably not > since cf5 ... and all things considered, the Java version is likely > more efficient. > > s. isaac dealey 954.522.6080 > new epoch : isn't it time for a change? > > add features without fixtures with > the onTap open source framework > > http://macromedia.breezecentral.com/p49777853/ > http://www.sys-con.com/story/?storyid=44477&DE=1 > http://www.sys-con.com/story/?storyid=45569&DE=1 > http://www.fusiontap.com > > > ~| Discover CFTicket - The leading ColdFusion Help Desk and Trouble Ticket application http://www.houseoffusion.com/banners/view.cfm?bannerid=48 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:197712 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
RE: ColdFusion ignores empty list elements
Yes > How hard would it be to quote each of the values? Would '1','2','','4' > still come back as four elements? ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:197706 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
RE: ColdFusion ignores empty list elements
How hard would it be to quote each of the values? Would '1','2','','4' still come back as four elements? -Original Message- From: Adam Haskell [mailto:[EMAIL PROTECTED] Sent: Monday, March 07, 2005 9:32 AM To: CF-Talk Subject: Re: ColdFusion ignores empty list elements This is not a flaw...it is a noted enhancement, one which I like, and I think MM should pick up, they could easily add a boolean value at the end of list function to disignate if you want to include blank entries. I think it is obsurd to use Macromedia's product as a measuring stick as to what is a flaw or not...but that is getting way too off topic... Adam H On Mon, 7 Mar 2005 09:20:37 -0500, S. Isaac Dealey <[EMAIL PROTECTED]> wrote: > > Switch to Bluedragon :) > > If BD's interpretation of the list functions isn't the same as CF's > (without creating new functions with different names to handle them > differently) then I'd have to consider that a flaw in BD. > > I at one point had a function written to convert lists to arrays and > include empty elements... > > myarray = arraynew(1); > f = findoneof(",",mylist); > while (f) { > if (f is 1) { arrayappend(myarray,""); } > else { >arrayappend(myarray,left(mylist,findoneof(",",mylist))); > } > mylist = removechars(mylist,1,f); > f = findoneof(",",mylist); > } > > That's from memory -- haven't used it in a long while -- probably not > since cf5 ... and all things considered, the Java version is likely > more efficient. > > s. isaac dealey 954.522.6080 > new epoch : isn't it time for a change? > > add features without fixtures with > the onTap open source framework > > http://macromedia.breezecentral.com/p49777853/ > http://www.sys-con.com/story/?storyid=44477&DE=1 > http://www.sys-con.com/story/?storyid=45569&DE=1 > http://www.fusiontap.com > > > ~| Discover CFTicket - The leading ColdFusion Help Desk and Trouble Ticket application http://www.houseoffusion.com/banners/view.cfm?bannerid=48 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:197701 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
Re: ColdFusion ignores empty list elements
This is not a flaw...it is a noted enhancement, one which I like, and I think MM should pick up, they could easily add a boolean value at the end of list function to disignate if you want to include blank entries. I think it is obsurd to use Macromedia's product as a measuring stick as to what is a flaw or not...but that is getting way too off topic... Adam H On Mon, 7 Mar 2005 09:20:37 -0500, S. Isaac Dealey <[EMAIL PROTECTED]> wrote: > > Switch to Bluedragon :) > > If BD's interpretation of the list functions isn't the same as CF's > (without creating new functions with different names to handle them > differently) then I'd have to consider that a flaw in BD. > > I at one point had a function written to convert lists to arrays and > include empty elements... > > myarray = arraynew(1); > f = findoneof(",",mylist); > while (f) { > if (f is 1) { arrayappend(myarray,""); } > else { >arrayappend(myarray,left(mylist,findoneof(",",mylist))); > } > mylist = removechars(mylist,1,f); > f = findoneof(",",mylist); > } > > That's from memory -- haven't used it in a long while -- probably not > since cf5 ... and all things considered, the Java version is likely > more efficient. > > s. isaac dealey 954.522.6080 > new epoch : isn't it time for a change? > > add features without fixtures with > the onTap open source framework > > http://macromedia.breezecentral.com/p49777853/ > http://www.sys-con.com/story/?storyid=44477&DE=1 > http://www.sys-con.com/story/?storyid=45569&DE=1 > http://www.fusiontap.com > > > ~| Find out how CFTicket can increase your company's customer support efficiency by 100% http://www.houseoffusion.com/banners/view.cfm?bannerid=49 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:197692 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
RE: ColdFusion ignores empty list elements
NewAtlanta has said in a number of ways that they aren't after 100% compatibility. Of course, CFMX 7 really changed the landscape a bit, and I don't see how NA will catch up with that. -Original Message- From: Michael T. Tangorre [mailto:[EMAIL PROTECTED] Sent: Monday, March 07, 2005 9:20 AM To: CF-Talk Subject: RE: ColdFusion ignores empty list elements > From: Adam Haskell [mailto:[EMAIL PROTECTED] > Switch to Bluedragon :) LOL. Why? The bigger question is, why would BD implement a function differently than MM... kinda nixes the whole idea of BD being an alternate to CF Server. ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:197669 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
RE: ColdFusion ignores empty list elements
> From: Adam Haskell [mailto:[EMAIL PROTECTED] > Switch to Bluedragon :) LOL. Why? The bigger question is, why would BD implement a function differently than MM... kinda nixes the whole idea of BD being an alternate to CF Server. ~| Find out how CFTicket can increase your company's customer support efficiency by 100% http://www.houseoffusion.com/banners/view.cfm?bannerid=49 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:197667 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
Re: ColdFusion ignores empty list elements
> Switch to Bluedragon :) If BD's interpretation of the list functions isn't the same as CF's (without creating new functions with different names to handle them differently) then I'd have to consider that a flaw in BD. I at one point had a function written to convert lists to arrays and include empty elements... myarray = arraynew(1); f = findoneof(",",mylist); while (f) { if (f is 1) { arrayappend(myarray,""); } else { arrayappend(myarray,left(mylist,findoneof(",",mylist))); } mylist = removechars(mylist,1,f); f = findoneof(",",mylist); } That's from memory -- haven't used it in a long while -- probably not since cf5 ... and all things considered, the Java version is likely more efficient. s. isaac dealey 954.522.6080 new epoch : isn't it time for a change? add features without fixtures with the onTap open source framework http://macromedia.breezecentral.com/p49777853/ http://www.sys-con.com/story/?storyid=44477&DE=1 http://www.sys-con.com/story/?storyid=45569&DE=1 http://www.fusiontap.com ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:197666 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
Re: ColdFusion ignores empty list elements
Switch to Bluedragon :) Also I use the split UDF on CFlib, works very nicely, The pure java solution is one of the best Ideas, but we are on *sigh* CF 5 so I don't have that luxury personally :) Adam H On Mon, 07 Mar 2005 06:56:02 -0400, cf coder <[EMAIL PROTECTED]> wrote: > ex: the list "a,b,c,,,d" has four elements > > How do I force it to not ignore empty elements? I'm getting an error with > listGetAt(list,4). Any thoughts? > > Best regards > cfcoder > > ~| Discover CFTicket - The leading ColdFusion Help Desk and Trouble Ticket application http://www.houseoffusion.com/banners/view.cfm?bannerid=48 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:197665 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
Re: ColdFusion ignores empty list elements
How about: if (listLen(list) EQ 5) { QuerySetCell(qTmp,"model", listGetAt(list,5)); } else{ QuerySetCell(qTmp,"model",""); } On Mon, 07 Mar 2005 07:14:46 -0400, cf coder <[EMAIL PROTECTED]> wrote: > thanks for that guys. I'm still getting an invalid list index error. if the > list has 4 elements and I try to use the listgetat function to get the 5th > element. I get an error. > > QuerySetCell(qTmp,"model", listGetAt(list,5)); > > Is there a way to say if it does not exist, do something else > > ex: > > > if (listGetAt(list,5)) { > QuerySetCell(qTmp,"model", listGetAt(list,5)); > } > else{ > QuerySetCell(qTmp,"model",""); > } > > > The above code does not work though > > ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:197663 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
RE: ColdFusion ignores empty list elements
In pure java you can also do this: Then you can do myList.get(0), myList.get(5) ,myList.size(); -Original Message- From: Katz, Dov B (IT) Sent: Monday, March 07, 2005 7:19 AM To: CF-Talk Subject: RE: ColdFusion ignores empty list elements How about this? List=replace(list,",,",", ,","ALL"); If (list.endsWith(",")) list=list & " "; Then do trim(listGetAt(list,X)); A bit hackish, but it'll work. -dov -Original Message- From: cf coder [mailto:[EMAIL PROTECTED] Sent: Monday, March 07, 2005 6:15 AM To: CF-Talk Subject: Re: ColdFusion ignores empty list elements thanks for that guys. I'm still getting an invalid list index error. if the list has 4 elements and I try to use the listgetat function to get the 5th element. I get an error. QuerySetCell(qTmp,"model", listGetAt(list,5)); Is there a way to say if it does not exist, do something else ex: if (listGetAt(list,5)) { QuerySetCell(qTmp,"model", listGetAt(list,5)); } else{ QuerySetCell(qTmp,"model",""); } The above code does not work though ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:197661 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
Re: ColdFusion ignores empty list elements
Here is the code QuerySetCell(qTmp,"ref", Replace(listGetAt(fileLine,1),,"","All")); QuerySetCell(qTmp,"asset", Replace(listGetAt(fileLine,2),,"","All")); QuerySetCell(qTmp,"serial", Replace(listGetAt(fileLine,3),,"","All")); QuerySetCell(qTmp,"manufact", Replace(listGetAt(fileLine,4),,"","All")); QuerySetCell(qTmp,"model", Replace(listGetAt(fileLine,5),,"","All")); SELECT * FROM qTmp Hope this helps ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:197660 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
RE: ColdFusion ignores empty list elements
For fun, something like the below might work (this is completely untested, I wrote it in the email). - Calvin function ListElementExists(l,i,d) { var tl = Replace(l,d&d,d&"UDFTEMPITEM"&d,"ALL"); var result = false; if (ListLen(l,d) GTE I AND ListGetAt(l,i,d) IS NOT "UDFTEMPITEM") { result = true; } return result; } -Original Message- From: cf coder [mailto:[EMAIL PROTECTED] Sent: Monday, March 07, 2005 6:15 AM To: CF-Talk Subject: Re: ColdFusion ignores empty list elements thanks for that guys. I'm still getting an invalid list index error. if the list has 4 elements and I try to use the listgetat function to get the 5th element. I get an error. QuerySetCell(qTmp,"model", listGetAt(list,5)); Is there a way to say if it does not exist, do something else ex: if (listGetAt(list,5)) { QuerySetCell(qTmp,"model", listGetAt(list,5)); } else{ QuerySetCell(qTmp,"model",""); } The above code does not work though ~| Find out how CFTicket can increase your company's customer support efficiency by 100% http://www.houseoffusion.com/banners/view.cfm?bannerid=49 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:197659 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
RE: ColdFusion ignores empty list elements
A simple replace? Could you show me the simple version? How do you deal with "1,2,3,4,,,7,8,9" in a simple manner? Half the UDFs on cflib.org could be considered 'simple', that doesn't stop them from being useful. Ade -Original Message- From: Micha Schopman [mailto:[EMAIL PROTECTED] Sent: 07 March 2005 12:03 To: CF-Talk Subject: RE: ColdFusion ignores empty list elements Lol .. an entire udf for a simple replace function .. euhm ok .. :P Micha Schopman Software Engineer -Original Message- From: Adrian Lynch [mailto:[EMAIL PROTECTED] Sent: maandag 7 maart 2005 13:03 To: CF-Talk Subject: RE: ColdFusion ignores empty list elements And here's one to do it for you. Not used it myself but it's description reads like it'll help you. http://www.cflib.org/udf.cfm?ID=507 Ade -Original Message- From: Micha Schopman [mailto:[EMAIL PROTECTED] Sent: 07 March 2005 11:59 To: CF-Talk Subject: RE: ColdFusion ignores empty list elements Replace the empty values with a dummy value you can detect before reading the list. Micha Schopman Software Engineer -Original Message- From: cf coder [mailto:[EMAIL PROTECTED] Sent: maandag 7 maart 2005 11:56 To: CF-Talk Subject: ColdFusion ignores empty list elements ex: the list "a,b,c,,,d" has four elements How do I force it to not ignore empty elements? I'm getting an error with listGetAt(list,4). Any thoughts? Best regards cfcoder -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.308 / Virus Database: 266.6.2 - Release Date: 04/03/2005 ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:197658 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
RE: ColdFusion ignores empty list elements
This is a good UDF - works well. -Original Message- From: Adrian Lynch [mailto:[EMAIL PROTECTED] Sent: 07 March 2005 12:03 To: CF-Talk Subject: RE: ColdFusion ignores empty list elements And here's one to do it for you. Not used it myself but it's description reads like it'll help you. http://www.cflib.org/udf.cfm?ID=507 Ade -Original Message- From: Micha Schopman [mailto:[EMAIL PROTECTED] Sent: 07 March 2005 11:59 To: CF-Talk Subject: RE: ColdFusion ignores empty list elements Replace the empty values with a dummy value you can detect before reading the list. Micha Schopman Software Engineer -Original Message- From: cf coder [mailto:[EMAIL PROTECTED] Sent: maandag 7 maart 2005 11:56 To: CF-Talk Subject: ColdFusion ignores empty list elements ex: the list "a,b,c,,,d" has four elements How do I force it to not ignore empty elements? I'm getting an error with listGetAt(list,4). Any thoughts? Best regards cfcoder -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.308 / Virus Database: 266.6.2 - Release Date: 04/03/2005 ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:197657 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
RE: ColdFusion ignores empty list elements
ColdFusion does indeed ignore them. You have to put a value in the empty places - say NULL. -Original Message- From: cf coder [mailto:[EMAIL PROTECTED] Sent: 07 March 2005 10:56 To: CF-Talk Subject: ColdFusion ignores empty list elements ex: the list "a,b,c,,,d" has four elements How do I force it to not ignore empty elements? I'm getting an error with listGetAt(list,4). Any thoughts? Best regards cfcoder ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:197656 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
RE: ColdFusion ignores empty list elements
How about this? List=replace(list,",,",", ,","ALL"); If (list.endsWith(",")) list=list & " "; Then do trim(listGetAt(list,X)); A bit hackish, but it'll work. -dov -Original Message- From: cf coder [mailto:[EMAIL PROTECTED] Sent: Monday, March 07, 2005 6:15 AM To: CF-Talk Subject: Re: ColdFusion ignores empty list elements thanks for that guys. I'm still getting an invalid list index error. if the list has 4 elements and I try to use the listgetat function to get the 5th element. I get an error. QuerySetCell(qTmp,"model", listGetAt(list,5)); Is there a way to say if it does not exist, do something else ex: if (listGetAt(list,5)) { QuerySetCell(qTmp,"model", listGetAt(list,5)); } else{ QuerySetCell(qTmp,"model",""); } The above code does not work though ~| Discover CFTicket - The leading ColdFusion Help Desk and Trouble Ticket application http://www.houseoffusion.com/banners/view.cfm?bannerid=48 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:197655 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
Re: ColdFusion ignores empty list elements
thanks for that guys. I'm still getting an invalid list index error. if the list has 4 elements and I try to use the listgetat function to get the 5th element. I get an error. QuerySetCell(qTmp,"model", listGetAt(list,5)); Is there a way to say if it does not exist, do something else ex: if (listGetAt(list,5)) { QuerySetCell(qTmp,"model", listGetAt(list,5)); } else{ QuerySetCell(qTmp,"model",""); } The above code does not work though ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:197654 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
RE: ColdFusion ignores empty list elements
Lol .. an entire udf for a simple replace function .. euhm ok .. :P Micha Schopman Software Engineer Modern Media, Databankweg 12 M, 3821 AL Amersfoort Tel 033-4535377, Fax 033-4535388 KvK Amersfoort 39081679, Rabo 39.48.05.380 - Modern Media, Making You Interact Smarter. Onze oplossingen verbeteren de interactie met uw doelgroep. Wilt u meer omzet, lagere kosten of een beter service niveau? Voor meer informatie zie www.modernmedia.nl - -Original Message- From: Adrian Lynch [mailto:[EMAIL PROTECTED] Sent: maandag 7 maart 2005 13:03 To: CF-Talk Subject: RE: ColdFusion ignores empty list elements And here's one to do it for you. Not used it myself but it's description reads like it'll help you. http://www.cflib.org/udf.cfm?ID=507 Ade -Original Message- From: Micha Schopman [mailto:[EMAIL PROTECTED] Sent: 07 March 2005 11:59 To: CF-Talk Subject: RE: ColdFusion ignores empty list elements Replace the empty values with a dummy value you can detect before reading the list. Micha Schopman Software Engineer -Original Message- From: cf coder [mailto:[EMAIL PROTECTED] Sent: maandag 7 maart 2005 11:56 To: CF-Talk Subject: ColdFusion ignores empty list elements ex: the list "a,b,c,,,d" has four elements How do I force it to not ignore empty elements? I'm getting an error with listGetAt(list,4). Any thoughts? Best regards cfcoder -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.308 / Virus Database: 266.6.2 - Release Date: 04/03/2005 ~| Find out how CFTicket can increase your company's customer support efficiency by 100% http://www.houseoffusion.com/banners/view.cfm?bannerid=49 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:197653 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
RE: ColdFusion ignores empty list elements
And here's one to do it for you. Not used it myself but it's description reads like it'll help you. http://www.cflib.org/udf.cfm?ID=507 Ade -Original Message- From: Micha Schopman [mailto:[EMAIL PROTECTED] Sent: 07 March 2005 11:59 To: CF-Talk Subject: RE: ColdFusion ignores empty list elements Replace the empty values with a dummy value you can detect before reading the list. Micha Schopman Software Engineer -Original Message- From: cf coder [mailto:[EMAIL PROTECTED] Sent: maandag 7 maart 2005 11:56 To: CF-Talk Subject: ColdFusion ignores empty list elements ex: the list "a,b,c,,,d" has four elements How do I force it to not ignore empty elements? I'm getting an error with listGetAt(list,4). Any thoughts? Best regards cfcoder -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.308 / Virus Database: 266.6.2 - Release Date: 04/03/2005 ~| Find out how CFTicket can increase your company's customer support efficiency by 100% http://www.houseoffusion.com/banners/view.cfm?bannerid=49 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:197652 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
RE: ColdFusion ignores empty list elements
Replace the empty values with a dummy value you can detect before reading the list. Micha Schopman Software Engineer Modern Media, Databankweg 12 M, 3821 AL Amersfoort Tel 033-4535377, Fax 033-4535388 KvK Amersfoort 39081679, Rabo 39.48.05.380 - Modern Media, Making You Interact Smarter. Onze oplossingen verbeteren de interactie met uw doelgroep. Wilt u meer omzet, lagere kosten of een beter service niveau? Voor meer informatie zie www.modernmedia.nl - -Original Message- From: cf coder [mailto:[EMAIL PROTECTED] Sent: maandag 7 maart 2005 11:56 To: CF-Talk Subject: ColdFusion ignores empty list elements ex: the list "a,b,c,,,d" has four elements How do I force it to not ignore empty elements? I'm getting an error with listGetAt(list,4). Any thoughts? Best regards cfcoder ~| Discover CFTicket - The leading ColdFusion Help Desk and Trouble Ticket application http://www.houseoffusion.com/banners/view.cfm?bannerid=48 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:197651 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54