Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
I'm straining my eyes, but I can't seem to Focus!!
Message
From
16/07/1999 02:02:47
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00241962
Message ID:
00242157
Views:
17
>>Do you get that message even for valid dates?
>>
>>>If I were to set the Value propert of a textbox to Date() anything else I try to type in evokes a box saying 'Not a Valid Date'. I have found no way to intercept this message, the only thing I can think of is to ensure all data is converted to String before assigning it, but surely there must be a better way?
>
>No, I Get it only for invalid dates, but I want to add some functionality to the way a user can enter dates, e.g. Allow them to enter just a day and have it set the date to the current month, but with the entered day.

Check StrictDateEntry property and also you have access to what has been typed (unformatted as is) by the user via "text" property of control.
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