Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Format problem with MaskEdBox
Message
 
To
16/11/1999 09:32:43
General information
Forum:
Visual Basic
Category:
Other
Miscellaneous
Thread ID:
00291447
Message ID:
00291511
Views:
20
>Problem 1:
>I am creating a data entry system and one of the fields is the postal code(H2N-5F6)Canada. I am using the MaskEdBox.I want to have the Postal code in Uppercase.How can I format so it is in Uppercase.

Your mask property should be set to ">?9? 9?9".


>Problem 2:I want to use the (Propercase )so that when the user enters text in the LastName field (text box)the first character automatically get changed to uppercase.

Use the StrConv function like this:
Private Sub Text1_Change()
With Text1
.Text = StrConv(Text1.Text, vbProperCase)
.SelStart = Len(.Text)
End With
End Sub
Éric Moreau, MCPD, Visual Developer - Visual Basic MVP
Conseiller Principal / Senior Consultant
Moer inc.
http://www.emoreau.com
Previous
Reply
Map
View

Click here to load this message in the networking platform