This would work great if CF treated contiguous delimiters (ie empty items)
as list elements.
Your example will fail for things like

ListLen("hello dolly", "l").

Was an explanation ever provided by Allaire as to why empty items are
ignored?

Aaron

----- Original Message -----
From: "TRACEY, Darren" <[EMAIL PROTECTED]>
To: "CFAussie Mailing List" <[EMAIL PROTECTED]>
Sent: Thursday, July 08, 2004 9:54 AM
Subject: [cfaussie] RE: Count occurances of a character in a string


> How about this:
> listLen(originalString,characterToCount)-1
> No special non standard functions to get. Just bog standard cf
> tags/functions.



---
You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]
Aussie Macromedia Developers: http://lists.daemon.com.au/

Reply via email to