Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Anniversary/birthday reminders
Message
De
08/04/2005 09:10:19
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9
Divers
Thread ID:
01001497
Message ID:
01002584
Vues:
39
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform