>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*
>
Hi Christof,
In the words of James Brown (AKA "The Godfather of Soul", "The Hardest Working Man in Show Business"): "Good God!" How could I have forgotten that? How absolutely myopic of me.
Anyway, thanks for the reminder. (Heads back to the drawing board):-)
George
Ubi caritas et amor, deus ibi est