Author: Jerry Foote
Posted: 2011-04-13 at 11:39:21
I did not know you could use NOT.
Jerry
-----Original Message-----
From: profox-bounces@leafe.com [mailto:profox-bounces@leafe.com] On Behalf
Of MB Software Solutions,LLC
Sent: Wednesday, April 13, 2011 10:32 AM
To: ProFox Email List
Subject: Re: Testing for leap year?
I think this has to be the best from VFP:
IsLeapYear = NOT EMPTY(DATE(YEAR(This.EndDate),2,29))
If you can see any flaws in this approach, please say so, but you don't
have to list all the other ways that are either non-VFP or more than
this one line. <g>
--
Mike Babcock, MCP
MB Software Solutions, LLC
President, Chief Software Architect
http://mbsoftwaresolutions.com
[excessive quoting removed by server]
_______________________________________________
Post Messages to: ProFox@leafe.com
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: http://leafe.com/archives/byMID/profox/4CB9C15CBA174124931F0363F25E0340@jerryfootePC
** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.