VFP's native date check must fire before the valid event. Using the code you provded gave me the same result as before.
Einar
>>Hi,
>>
>>VFP is nice enough to not accept an invalid date when a date type is bound to a textbox control, but how can I capture this invalid date entry to give the user a "friendly" notification that the date (s)he entered was invalid.
>>
>>When I enter an invalid date it reads: "Invalid Date (press space)" on the bottom of my _screen.
>>
>>Thanks,
>>Einar
> Have you investigated the Valid Event
>
>lValid = DODEFAULT()
>if not lValid
> =messagebox('invalid date')
>endif
>
Semper ubi sub ubi.