Home
Search
 
What's New
Index
Books
Links
Q & A
Newsletter
Banners
 
Feedback
Tip Jar
 
C# Helper...
 
XML RSS Feed
Follow VBHelper on Twitter
 
 
 
MSDN Visual Basic Community
 
 
 
 
 
 
TitleConvert text to proper case using StrConv
DescriptionThis example shows how to convert text to proper case using StrConv in Visual Basic 6.
KeywordsStrConv, proper case
CategoriesStrings
 
This program uses the StrConv function to convert text into proper case.
 
Private Sub CmdConvert_Click()
    OutLabel.Caption = StrConv(InText.Text, vbProperCase)
End Sub
 

Note that StrConv is not very smart. It basically converts the first letter in a block separated by spaces into upper case. For example, it converts "pat o'connor" into "Pat O'connor." For smarter programs, look at these examples:

 
 
Copyright © 1997-2010 Rocky Mountain Computer Consulting, Inc.   All rights reserved.
  Updated