Re: Date Range Search Problem - when it's integers stored and not dates - IDEA!!!

2008-03-25 Thread denstar
On Mon, Mar 24, 2008 at 7:26 PM, Les Mizzell [EMAIL PROTECTED] wrote:
...
  What's the easiest way to search for values in a list starting at
  position X and ending at position Y?

Off the top of my head, I'd do a listSort, and then iterate.

Dunno if the list position idea would work for the search tho-- that'd
be some really intensive looping there.

:denny

--

~|
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:302055
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: Date Range Search Problem - when it's integers stored and not dates - IDEA!!!

2008-03-24 Thread Les Mizzell
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