Ahhh- here's an idea!

OK, in theory...
Let's just look at just the month for starters...

form.startMONTH
form.endMONTH

Each has a value of 1 - 12
but, let's use that as LIST START AND END POSITIONS

Set a list containing 2 years worth of months:

<cfset findMONTHS = "1,2,3,4,5,6,7,8,9,10,11,12,1,2,3,4,5,6,7,8,9,10,11,12">

form.startMONTH would equal the starting position in the list

(form.endMONTH + 12) would be the ending position in the list


Search for anything in between. How's that?

What's the easiest way to search for values in a list starting at 
position X and ending at position Y?






~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;160198600;22374440;w

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:301973
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to