- see footer for list info -<
Wicked! - One day i'll understand all this trickery pokery. I would have
wriiten it with mid but your way is much better ....
Thanks - Paul
From: "Duncan Cumming" <[EMAIL PROTECTED]>
Reply-To: Coldfusion Development <[email protected]>
To: <[email protected]>
Subject: Re: [CF-Dev] Delimeters
Date: Thu, 06 Oct 2005 14:57:37 +0100
>- see footer for list info -<
It looks to see what length the list is, i.e. how many items are in your
list. The first parameter is your list variable. The second (optional)
parameter is the list delimiter. So for instance you could say
<cfset fubar = "how now brown cow">
<cfset wordCount = ListLen(fubar, " ")>
Which will give you a count of how many words there are in the sentence,
assuming the space character is the 'delimiter'.
So in the example I gave, if there aren't exactly 3 elements in this list,
assuming delimiter is "/", it fails. So both these would fail:
10.10.10
10/05
IF NOT ListLen(yourdatefield, "/") EQ 3
// isn't in the format: blah/blah/blah
hey that's not a valid date
Duncan Cumming
New Media Developer
Customer Relations Management / Education
Fife Council
700 4105 / 01592 414105
>>> [EMAIL PROTECTED] 06/10/2005 14:51 >>>
>- see footer for list info -<
Ok Duncan it works great. Now I thought that this looked at poistion 3 and
compared it to /
It obviously doesn't because it works for both delimeters which is great.
So can you explain this little code snippet please - How is it doing what
it
does?
Regards - Paul
_______________________________________________
For details on ALL mailing lists and for joining or leaving lists, go to
http://list.cfdeveloper.co.uk/mailman/listinfo
--
CFDeveloper Sponsors:-
>- Hosting provided by www.cfmxhosting.co.uk -<
>- Forum provided by www.fusetalk.com -<
>- DHTML Menus provided by www.APYCOM.com -<
>- Lists hosted by www.Gradwell.com -<
>- CFdeveloper is run by Russ Michaels, feel free to volunteer your help
-<
**********************************************************************
This email and any files transmitted with it are confidential and intended
solely for the use of the individual or entity to whom they are addressed
and should not be disclosed to any other party.
If you have received this email in error please notify your system manager
and the sender of this message.
This email message has been swept for the presence of computer viruses but
no guarantee is given that this e-mail message and any attachments are free
from viruses.
Fife Council
Tel: +44 (0) 1592 414141
**********************************************************************
_______________________________________________
For details on ALL mailing lists and for joining or leaving lists, go to
http://list.cfdeveloper.co.uk/mailman/listinfo
--
CFDeveloper Sponsors:-
>- Hosting provided by www.cfmxhosting.co.uk -<
>- Forum provided by www.fusetalk.com -<
>- DHTML Menus provided by www.APYCOM.com -<
>- Lists hosted by www.Gradwell.com -<
>- CFdeveloper is run by Russ Michaels, feel free to volunteer your help
-<
_______________________________________________
For details on ALL mailing lists and for joining or leaving lists, go to
http://list.cfdeveloper.co.uk/mailman/listinfo
--
CFDeveloper Sponsors:-
- Hosting provided by www.cfmxhosting.co.uk -<
- Forum provided by www.fusetalk.com -<
- DHTML Menus provided by www.APYCOM.com -<
- Lists hosted by www.Gradwell.com -<
- CFdeveloper is run by Russ Michaels, feel free to volunteer your help -<