- see footer for list info -<
Duh....! - Thanks ....

Regards - Paul (Too many functions to keep in one small brain)


From: "Paul Swingewood" <[EMAIL PROTECTED]>
Reply-To: Coldfusion Development <[email protected]>
To: [email protected]
Subject: [CF-Dev] Date Loop
Date: Mon, 03 Sep 2007 10:16:46 +0100

- see footer for list info -<
Hi everyone.

Is there a quick and easy way I can change this code so that the option comes back with the month as January, February, March etc ... rather than 1,2,3 ....? That is stored in MonthValue

<cfoutput>
                                                <select name="SelectedMonth">
                                                        <cfloop index = 
"MonthValue"
                                                                from = "1"
                                                                to = "12">
                                                                        <cfif 
#DatePart("m", GetGigDate.GigDate)# eq #MonthValue#>
<option value="#MonthValue#" selected="selected">#MonthValue#</option>
                                                                        <cfelse>
                                                                        <option 
value="#MonthValue#">#MonthValue#</option>
                                                                        </cfif>
                                                                </cfloop>
                                                </select>
                                        </cfoutput>

Regards - Paul


_______________________________________________

For details on ALL mailing lists and for joining or leaving lists, go to http://list.cfdeveloper.co.uk/mailman/listinfo

--
CFDeveloper Sponsors:-
- cfdeveloper Hosting provided by www.cfmxhosting.co.uk -<
- Lists hosted by www.Gradwell.com -<
- CFdeveloper is run by Russ Michaels, feel free to volunteer your help -<


_______________________________________________

For details on ALL mailing lists and for joining or leaving lists, go to 
http://list.cfdeveloper.co.uk/mailman/listinfo

--
CFDeveloper Sponsors:-
- cfdeveloper Hosting provided by www.cfmxhosting.co.uk -<
- Lists hosted by www.Gradwell.com -<
- CFdeveloper is run by Russ Michaels, feel free to volunteer your help -<

Reply via email to