who said anything about arrays?



                                                                                       
                              
                    Paul Johnston                                                      
                              
                    <[EMAIL PROTECTED]        To:     [EMAIL PROTECTED]                
                       
                    tions.com>             cc:                                         
                              
                                           Subject:     Re: [ cf-dev ] number of items 
in a list                     
                    23/09/2004                                                         
                              
                    12:44                                                              
                              
                    Please respond                                                     
                              
                    to dev                                                             
                              
                                                                                       
                              
                                                                                       
                              



If you want an array... use an array.

Lists are useless when you should be using an array.  To get round it,
count the number of commas and + 1.

Either that, or loop over the string and create a real array
(listtoarray won't help here either)...

Paul

On Thu, 2004-09-23 at 12:48, [EMAIL PROTECTED]
wrote:
> <cfset list="a,b,c,,,,,i">
>
> <cfoutput>
>      #ListLen(list)#
> </cfoutput>
>
> = 4.  i.e. it's not counting the empty elements in the list.  how'd you
get
> round that, parse through the list looking for commas?
>
>
>


--
These lists are syncronised with the CFDeveloper forum at
http://forum.cfdeveloper.co.uk/
Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/

CFDeveloper Sponsors and contributors:-
*Hosting and support provided by CFMXhosting.co.uk* :: *ActivePDF provided
by activepdf.com*
      *Forums provided by fusetalk.com* :: *ProWorkFlow provided by
proworkflow.com*
           *Tutorials provided by helmguru.com* :: *Lists hosted by
gradwell.com*

To unsubscribe, e-mail: [EMAIL PROTECTED]






-- 
These lists are syncronised with the CFDeveloper forum at 
http://forum.cfdeveloper.co.uk/
Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/
 
CFDeveloper Sponsors and contributors:-
*Hosting and support provided by CFMXhosting.co.uk* :: *ActivePDF provided by 
activepdf.com*
      *Forums provided by fusetalk.com* :: *ProWorkFlow provided by proworkflow.com*
           *Tutorials provided by helmguru.com* :: *Lists hosted by gradwell.com*

To unsubscribe, e-mail: [EMAIL PROTECTED]

Reply via email to