Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Anniversary/birthday reminders
Message
From
08/04/2005 09:10:19
 
 
To
07/04/2005 17:08:40
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9
Miscellaneous
Thread ID:
01001497
Message ID:
01002584
Views:
27
Hi Geoff,

thanks for sticking with me.

do you see any logical difference between your where clause and mine:
>	WHERE NOT EMPTY(dDate) AND ;
>	      IIF(YEAR(m.tdStart)=YEAR(m.tdEnd),;
>		      BETWEEN(DATE(YEAR(m.tdStart), MONTH(dDate), DAY(dDate)), m.tdstart, m.tdend),;
>		      (DATE(YEAR(m.tdStart), MONTH(dDate), DAY(dDate)) >=m.tdstart OR ;
>		       DATE(YEAR(m.tdEnd), MONTH(dDate), DAY(dDate)) <=m.tdend));

	WHERE NOT EMPTY(dDate) ;
		AND (BETWEEN(DATE(YEAR(m.tdStart), MONTH(dDate), DAY(dDate)) , m.tdstart, m.tdend) ;
			OR BETWEEN(DATE(YEAR(m.tdEnd), MONTH(dDate), DAY(dDate)) , m.tdstart, m.tdend));
They both appear to give the same answer and I think mine is a bit more readable, but want to make sure there is no subtle difference.

Thanks again.
Frank.

Frank Cazabon
Samaan Systems Ltd.
www.samaansystems.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform