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
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00241962
Message ID:
00241979
Views:
15
>>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.

It sounds like you will need to create a textbox class to allow this behaviour. You would need to use character date type to prevent the date date datatype from complaining about partial dates. When you get this working you should upload it, sounds useful.
Previous
Reply
Map
View

Click here to load this message in the networking platform