Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Error Number
Message
From
11/04/1998 08:48:16
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Miscellaneous
Thread ID:
00090990
Message ID:
00091286
Views:
21
>Hi John,
>
>As you suggested, I tried but it is not working, whenever I put
>correct date it gives error and If I put "15/15/98" or any invalid range,
>It is not giving any error, and control is still stand there. In both case control stands there. Where I was wrong ?
You cannot check for date validation in valid event. Valid event would fire when you enter a correct date (that's why you get message there) and as you return .f. control again has focus.
Put "set notify off" in form init, load, DE.beforeopentables etc (choose one) to supress system messages. In interactivechange event or keypress of date textbox check the date and prompt message as necessary (a date textbox wouldn't lose focus with an invalid date).
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Reply
Map
View

Click here to load this message in the networking platform