I thought you had to use ! for not. Glad to know you can use "NOT" Jerry
-----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of MB Software Solutions,LLC Sent: Wednesday, April 13, 2011 11:05 AM To: ProFox Email List Subject: Re: Testing for leap year? On 4/13/2011 11:39 AM, Jerry Foote wrote: > I did not know you could use NOT. > Jerry > > -----Original Message----- > From: [email protected] [mailto:[email protected]] 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)) The NOT is just referencing the EMPTY() function. -- Mike Babcock, MCP MB Software Solutions, LLC President, Chief Software Architect http://mbsoftwaresolutions.com http://fabmate.com http://twitter.com/mbabcock16 [excessive quoting removed by server] _______________________________________________ Post Messages to: [email protected] 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/E5FD94A402C945AE8C4DBA06892064FC@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.

