Home All Groups Group Topic Archive Search About

how to set proper case of a word?

Author
27 Jan 2006 8:26 PM
Rich
Hello,

Does VB.Net have a form of strConvert function?  I tried

Imports Microsoft.VisualBasic

but strConvert not available.  What is the way to set the propercase of a
word in VB.Net?

Thanks,
Rich

Author
27 Jan 2006 8:31 PM
Herfried K. Wagner [MVP]
"Rich" <R***@discussions.microsoft.com> schrieb:
> Does VB.Net have a form of strConvert function?  I tried
>
> Imports Microsoft.VisualBasic
>
> but strConvert not available.  What is the way to set the propercase of a
> word in VB.Net?

\\\
Dim s As String = StrConv("hello world", VbStrConv.ProperCase)
///

--
M S   Herfried K. Wagner
M V P  <URL:http://dotnet.mvps.org/>
V B   <URL:http://classicvb.org/petition/>
Author
27 Jan 2006 8:55 PM
Rich
Thank you very much for your help.  That did the trick.

Show quoteHide quote
"Herfried K. Wagner [MVP]" wrote:

> "Rich" <R***@discussions.microsoft.com> schrieb:
> > Does VB.Net have a form of strConvert function?  I tried
> >
> > Imports Microsoft.VisualBasic
> >
> > but strConvert not available.  What is the way to set the propercase of a
> > word in VB.Net?
>
> \\\
> Dim s As String = StrConv("hello world", VbStrConv.ProperCase)
> ///
>
> --
>  M S   Herfried K. Wagner
> M V P  <URL:http://dotnet.mvps.org/>
>  V B   <URL:http://classicvb.org/petition/>
>
>