<cfset NumbListItems = ListLen(rs_Update.GF_Phases,",")>

 <cfloop from="1" to="#NumbListItems#" index="i">
     <cfoutput>#i# : GP Phase:
#ListGetAt(rs_Update.GF_Phases,i,",")#<br></cfoutput>
 </cfloop>

will give :

1: GP Phase: 4
2: GP Phase: 2
3: GP Phase: 7

[shrug]  Its one of many way that you can do this.

Regards

Stephen

----- Original Message -----
From: "Paul Ihrig" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Friday, October 26, 2001 12:44 PM
Subject: Counting in a Field? cfloop


> How can i take the values of a field & count them?
>
> <cfloop index="GF_Phases" list="#rs_Update.GF_Phases#" delimiters=",">
> <cfoutput>GP Phase: #GF_Phases#<br></cfoutput>
> </cfloop>
>
> returns: GF_Phases: 4,2,7
>
> GP Phase: 4
> GP Phase: 2
> GP Phase: 7
>
> i would like it to count like this instead
>
> GP Phase: 1
> GP Phase: 2
> GP Phase: 3
>
>
> how could i do this?
>
> thank you
> -paul
> 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm
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