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:
00507169
Vues:
13
This message has been marked as a message which has helped to the initial question of the thread.
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.

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??
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.com
ICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs

It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform