Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Maskedit reg ?
Message
 
To
10/06/1999 14:33:46
General information
Forum:
Visual Basic
Category:
Third party products
Title:
Miscellaneous
Thread ID:
00227599
Message ID:
00228668
Views:
17
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
Previous
Reply
Map
View

Click here to load this message in the networking platform