Do you need to count the how many items in a  list?  If so, use function
ListLen.

Nathan Chen

----- Original Message -----
From: "Jeff Fongemie" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Sunday, March 10, 2002 5:37 PM
Subject: is there a way to get a count of elements in a list??


> Hello everyone,
>
> I have a list that is populated by a form sumbit and it looks like
> this, but will have more names.
>
>   <cfset namelist = "#form.name1#, #form.name2#, #form.name3#" >
>
>   Is there a way to count the elements in that list?
>
>   I have a form with 10 name textboxes. A user may only submit 2. So
>   my namelist will be jo, bob,,,,,,.
>
>   What I would like is something like, and the existing functions do
>   not seem to help with this:
>
>   CFSET numberofelelents =numberofelents(namelist)
>
>
> Best regards,
>  Jeff Fongemie                          mailto:[EMAIL PROTECTED]
>
> 
______________________________________________________________________
Get Your Own Dedicated Windows 2000 Server
  PIII 800 / 256 MB RAM / 40 GB HD / 20 GB MO/XFER
  Instant Activation · $99/Month · Free Setup
  http://www.pennyhost.com/redirect.cfm?adcode=coldfusionb
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to