Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Date textbox
Message
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Titre:
Divers
Thread ID:
00506928
Message ID:
00507275
Vues:
9
>Hi!
>
>You can make text box bound manually and make a value of it as a character string with specifying of the input mask. I have seen such class in some framework (or standard classes provided by ms?), that control also had a spinner to spin a day, month or year of the date. The date was a character string and a control source was not used to bind to data, instead of that code in refresh event and valid event do reading/writing of the data in the field.

Thanks, Vlad. The problem is: this application is already too complicated, so perhaps, for this particular application I leave this problem aside as not important. Besides, if I found it, it doesn't mean, my users will find it too, though this possibility is not equal 0.

Anyway, thanks a lot for the ideas, I will keep them in mind.

>HTH.
>
>>>>I observe the same behaviour. The invalid date data becomes selected which is the only clue that there is a problem. AFAIC, nothing fires, either, including LostFocus and Valid. Nothing happens unless the date is blank or a valid date is entered.
>>>>
>>>
>>>VFP validates it before the Valid event fires.
>>
>>This, in turn, lead to a question: how can we identify it programmatically, if nothing fires, and this is an internal thing?
>>
>>For instance, if I click on the button, I want to execute code in it regardless of the validity of data... We probably can write a code in KeyPress??
If it's not broken, fix it until it is.


My Blog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform