Re: is there a way to get a count of elements in a list??

2002-03-10 Thread Critz

oi Jeff!!


listlen(list)

-- 
Best regards,
 
Critter, MMCP
Certified ColdFusion Developer
 
Crit[s2k] - CF_ChannelOp Network=EFNet Channel=ColdFusion


-
Sunday, March 10, 2002, 7:37:34 PM, you wrote:

JF Hello everyone,

JF I have a list that is populated by a form sumbit and it looks like
JF this, but will have more names.

JF   cfset namelist = #form.name1#, #form.name2#, #form.name3# 

JF   Is there a way to count the elements in that list?

JF   I have a form with 10 name textboxes. A user may only submit 2. So
JF   my namelist will be jo, bob,,.

JF   What I would like is something like, and the existing functions do
JF   not seem to help with this:

JF   CFSET numberofelelents =numberofelents(namelist)


JF Best regards,
JF  Jeff Fongemie  mailto:[EMAIL PROTECTED]

JF 
__
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/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: is there a way to get a count of elements in a list??

2002-03-10 Thread Joseph DeVore

It sounds like you are looking for the listLen() function.

cfset length=listLen(yourList)

HTH,

Joseph DeVore
VeloxWeb Technologies


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


__
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



Re: is there a way to get a count of elements in a list??

2002-03-10 Thread Nathan Chen

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



RE: is there a way to get a count of elements in a list??

2002-03-10 Thread Pete Freitag

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/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Re: is there a way to get a count of elements in a list??

2002-03-10 Thread Jeff Fongemie

 Hello cf-talk,

 On Sun, 10 Mar 2002, at 16:50:46 you carefully wrote:
JD It sounds like you are looking for the listLen() function.

JD cfset length=listLen(yourList)


Wow, this group is so cool. Sunday evening here, working at home, and
I feel like I have a room full of CF people I can just lean over to
and ask a question!

Thanks for everyone's help!!

 Jeff

JD HTH,

JD Joseph DeVore
JD VeloxWeb Technologies


JD -Original Message-
JD From: Jeff Fongemie [mailto:[EMAIL PROTECTED]]
JD Sent: Sunday, March 10, 2002 4:38 PM
JD To: CF-Talk
JD Subject: is there a way to get a count of elements in a list??


JD Hello everyone,

JD I have a list that is populated by a form sumbit and it looks like
JD this, but will have more names.

JD   cfset namelist = #form.name1#, #form.name2#, #form.name3# 

JD   Is there a way to count the elements in that list?

JD   I have a form with 10 name textboxes. A user may only submit 2. So
JD   my namelist will be jo, bob,,.

JD   What I would like is something like, and the existing functions do
JD   not seem to help with this:

JD   CFSET numberofelelents =numberofelents(namelist)


JD Best regards,
JD  Jeff Fongemie  mailto:[EMAIL PROTECTED]


JD 
__
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/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists