Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
DATE display problems
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00163822
Message ID:
00163875
Vues:
24
>Hello,
>
>We are using VisualFoxPro 6.0 at the moment. We are creating a form which shows the date. In our country we use the dd-mm-yy format.
>
>We want to create a textbox with the date in it which will allow the user to type in the following format: dd-mm-yyyy and after the user leaves the textbox (lostfocus) we want to change the entered date into dd-mmm-yyyy so it will show the short name of the month. And when they active the textbox again it will switch to dd-mm-yyyy format for entry.
>
>We tried to put the DataFormat property to LONG but this way we have to change the Windows settings of the computer everytime so it will show the correct format (since the LONG property will use the windows settings). This is too complicated for the customer of our application. We tried to set the CENTURY property to ON but when we left the textbox the date would jump to a wrong date since it would take the 19 from 1998 instead of the 98.
>
>So our question is: how can we solve this problem?
>
>Thanks in advance for your answer and time!

Try switching the DateFormat on the GotFocus to dd-mm-yyyy and then in the lost focus set it to long.
Charles

"The code knows no master." - Chuck Mautz
"Everybody is ignorant, only on different subjects." - Will Rogers
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform