Hi George,
>I just stuck the function call in the Valid clause (where it wouldn't work). Never saw the point of the Valid clause and ON READERROR together.
Putting code in the VALID does work for almost all dates, just not if you enter 02/29/00. Then FoxPro defaults it 1900, recognizes that there's no leap here in 1900 and displays the invalid date message. ON READERROR is so far the only way I found to catch these messages with FoxPro commands. Without this particular day, my Y2K code would consist of maybe three lines of code and the article may not even be worth a note in the tip&tricks column. *g*
Christof
--
Christof