Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SET CENTURY stuff
Message
 
À
07/04/1999 17:57:57
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00206098
Message ID:
00206546
Vues:
17
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform