Even if you _tell_ CF that "," is the delimiter, it still treats ("1,,2,,3")
as length 3. That's wrong. It should be 3 numbers and 2 nulls, or at least
3 numbers and 2 empty strings. Also, if you add a space in there ("1, ,2,
,3"), it correctly returns 5 as the length.
:-S
Roland
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
Of Barney Boisvert
Sent: Thursday, May 12, 2005 9:13 PM
To: [email protected]
Subject: Re: [CFCDev] Null values (was CFC wish-list)
There are no nulls in that list, only empty strings. CF says 3
elements (and implies 2 delimiters). java.util.StringTokenizer says 3
elements, 4 delimiters. You say 5 elements (and imply 4 delimiters).
cheers,
barneyb
On 5/12/05, Dawson, Michael <[EMAIL PROTECTED]> wrote:
> >"Small enhancements" is a bit of an understatement. Adding the concept
> of null values to a 10 year old language that has always treated nulls
> as empty strings is no small thing. I don't even see how it's possible.
> Nevertheless, I think it's a great feature request.
>
> Let's not also forget asking for "nulls" in lists.
>
> For example: ListLen("1,,2,,3") should return "5".
>
> M!ke
--
Barney Boisvert
[EMAIL PROTECTED]
360.319.6145
http://www.barneyb.com/
Got Gmail? I have 50 invites.
----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email to
[email protected] with the words 'unsubscribe cfcdev' as the subject of the
email.
CFCDev is run by CFCZone (www.cfczone.org) and supported by CFXHosting
(www.cfxhosting.com).
CFCDev is supported by New Atlanta, makers of BlueDragon
http://www.newatlanta.com/products/bluedragon/index.cfm
An archive of the CFCDev list is available at
www.mail-archive.com/[email protected]
----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email to
[email protected] with the words 'unsubscribe cfcdev' as the subject of the
email.
CFCDev is run by CFCZone (www.cfczone.org) and supported by CFXHosting
(www.cfxhosting.com).
CFCDev is supported by New Atlanta, makers of BlueDragon
http://www.newatlanta.com/products/bluedragon/index.cfm
An archive of the CFCDev list is available at
www.mail-archive.com/[email protected]