Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Cetin Basoz
  Where is Cetin Basoz?
 Izmir
 Turkey
 Cetin Basoz
 To: Rafiq Ahmed
  Where is Rafiq Ahmed?
 Islamabad
 Pakistan
 Rafiq Ahmed
 Tags
Subject: RE: coding
Thread ID: 288927 Message ID: 288950 # Views: 43 # Ratings: 0
Version: Visual FoxPro 9 SP2 Category: General VFP Topics
Date: Monday, December 27, 2010 8:24:38 AM         
   


> Hi Gurus,
> I want to check a range of dates from another range of date i.e.
>
> Checking range (1/1/2010-- 30/06/2010)
>
> ANOTHER RANGE (1/2/2009 -- 30/03/2010)
> (3/4/2010 -- 31/12/2010)
>
> I am not able to figure out as i can check a date from range of dates but how to check a range from a range of date.
>
> Any sujjestion... please

* Change to <= and/or >= according to your overlap rules
if range1Start < range2End and range1End > range2Start
 * ranges overlap
else
 * ranges are separate
endif


Cetin Basoz

.Net has got better.Think about moving - check my blog:
Blog (main)
Blog (mirror)

ENTIRE THREAD

coding Posted by Rafiq Ahmed @ 12/26/2010 8:34:24 PM
RE: coding Posted by Samir H. @ 12/27/2010 2:09:32 AM
RE: coding Posted by Cetin Basoz @ 12/27/2010 8:24:38 AM