whoops - i forgot that too...it sounded not quite right when i typed it
Cheers
Bert
No. of lines = #ListLen(mystring, chr(13) & chr(10))#
> -----Original Message-----
> From: BOROVOY Noam [mailto:[EMAIL PROTECTED]]
> Sent: 10 May 2001 13:39
> To: Fusebox
> Subject: RE: Slightly OT question ...
>
>
> Bert,
>
> Just a quick correction - the list of delimiters is a set of delimiter
> characters - it itself is not comma delimited...
> (no need to either as each item is a single char)
>
> so your code below would also count all commas in the mystring...
>
> HTH,
> Noam
>
> ----------
> From: Bert Dawson [SMTP:[EMAIL PROTECTED]]
> Sent: Thursday, 10 May 2001 12:01
> To: Fusebox
> Subject: RE: Slightly OT question ...
>
> Better way would be to use a comma delimited list of
> delimiters - i
> forgot
> you could have more than one:
>
> <cfset mydelimiters = chr(13) & "," & chr(10)>
>
> No. of lines = #ListLen(mystring, mydelimiters)#
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists