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:profoxtech-bounces@leafe.com] On Behalf Of Tracy Pearson Sent: Monday, May 09, 2016 4:46 PM To: profoxtech@leafe.com 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