Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SET CENTURY stuff
Message
 
To
07/04/1999 17:57:57
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00206098
Message ID:
00206546
Views:
19
>How about creating your own date entry class? Let's say you use the regular textbox with your entry format of yy/mm/dd. When the user is done then internally the class appends the century according to your set century setting. After that it converts to date using CTOD() and assign to a var. If var has an empty date then it turns out the date entered is not valid and you can notify your user.
>Most probably, if it was this easy somebody would have come up with it by now ;)!

I have thought of this. I didn't want to delve into it yet. I think with this approach, the ControlSource of the TextBox could not be a date. So extra properties would need to be added that handle whether or not the NewControlSource is a field or a variable or a property or whatever.

So, I don't think it is easy, but it might be the way to go in my case.

Thanks,
Joe
Joseph C. Kempel
Systems Analyst/Programmer
JNC
Previous
Reply
Map
View

Click here to load this message in the networking platform