Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Maskedit reg ?
Message
 
À
10/06/1999 14:33:46
Information générale
Forum:
Visual Basic
Catégorie:
Produits tierce partie
Titre:
Divers
Thread ID:
00227599
Message ID:
00228668
Vues:
18
Hi,
Excuse me for the delay. Eric gave you a good answer.
To complete it I suggest :
After
MaskEdBox1.Text = Format(Date, "mm/dd/yy")
place a
MaskEdBox1.Format =  "@@/@@/@@"
to get the slashes right back.

Everything should then be OK.

BTW, the MaskEdit Box is a good control, but each time I need to cope with the data entered int it, I get rid of the format. I then store my data.
For example, to use a date field :

Displaying :
Mask.format = ""
Mask.text = MydateField 'in any date format
Mask.Format = "@@/@@/@@"
Storing :
Mask.format = ""
MydateField = Mask.text
I got huge problems since I write french software (format is dd/mm/yyyy !). Acccess/SQL is mm/dd/yy ! So do I.
VB Developer
Servilog Concept
jmb@octalfrance.com
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform