<cfset length = ListLen(namelist)>

+++++++++++++++++++++++++++++++++++++++++++++
Pete Freitag ([EMAIL PROTECTED])
CTO, CFDEV.COM
ColdFusion Developer Resources
http://www.cfdev.com/


-----Original Message-----
From: Jeff Fongemie [mailto:[EMAIL PROTECTED]]
Sent: Sunday, March 10, 2002 7:38 PM
To: CF-Talk
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]


______________________________________________________________________
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=coldfusiona
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to