Dividing by zero basically generates a numeric overflow. Add that to date() and 
you get nonsense. I'm a little surprised it doesn't throw an error as opposed 
to what looks like a blank date, which in and of itself is an xBase oddity. :-)

OTOH supporting my code in the year 9999 is not something I'm going to worry 
about...

--

rk
-----Original Message-----
From: ProfoxTech [mailto:[email protected]] On Behalf Of Tracy 
Pearson
Sent: Monday, May 09, 2016 4:46 PM
To: [email protected]
Subject: ?(Date() + INT(1 / 0) ) > Date(9999,12,31)

One of the testers here recently discovered a bit of code that when broken
down did this:

?(Date() + INT(1 / 0) ) > Date(9999,12,31)

It returns true. However, put that actual value in printed form and it
displays as "  /  /  "

Just something for the oddities in your VFP collection.

Tracy


_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox
OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: 
http://leafe.com/archives/byMID/profox/bn4pr10mb0913ecff4292a653adcb4015d2...@bn4pr10mb0913.namprd10.prod.outlook.com
** 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.

Reply via email to