By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,641 Members | 1,446 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,641 IT Pros & Developers. It's quick & easy.

proper case

P: n/a
is there function to do proper case formatting on a string? FoxPro use to
have a proper function that did this for you... thanks
Nov 21 '05 #1
Share this Question
Share on Google+
12 Replies


P: n/a
Brian,

Yes

StrConv
http://msdn.microsoft.com/library/de...fctstrconv.asp

I hope this helps?

Cor
Nov 21 '05 #2

P: n/a
thanks!

"Cor Ligthert" <no**********@planet.nl> wrote in message
news:et*************@TK2MSFTNGP11.phx.gbl...
Brian,

Yes

StrConv
http://msdn.microsoft.com/library/de...fctstrconv.asp

I hope this helps?

Cor

Nov 21 '05 #3

P: n/a
Dim m As New String("mylower")

MsgBox(m.ToUpper)
--

OHM ( Terry Burns )
. . . One-Handed-Man . . .
If U Need My Email ,Ask Me

Time flies when you don't know what you're doing

"Brian Henry" <br**********@newsgroups.nospam> wrote in message
news:uY*************@TK2MSFTNGP12.phx.gbl...
thanks!

"Cor Ligthert" <no**********@planet.nl> wrote in message
news:et*************@TK2MSFTNGP11.phx.gbl...
Brian,

Yes

StrConv
http://msdn.microsoft.com/library/de...fctstrconv.asp
I hope this helps?

Cor


Nov 21 '05 #4

P: n/a
* "Brian Henry" <br**********@newsgroups.nospam> scripsit:
is there function to do proper case formatting on a string?


\\\
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://dotnet.mvps.org/dotnet/faqs/>
Nov 21 '05 #5

P: n/a
but wouldn't toupper convert every char in the string to uppercase? where
proper case would just say "My text string. This is fun." as where toupper
would be "MY TEXT STRING. THIS IS FUN."
"One Handed Man ( OHM - Terry Burns )" <news.microsoft.com> wrote in message
news:ur*************@TK2MSFTNGP12.phx.gbl...
Dim m As New String("mylower")

MsgBox(m.ToUpper)
--

OHM ( Terry Burns )
. . . One-Handed-Man . . .
If U Need My Email ,Ask Me

Time flies when you don't know what you're doing

"Brian Henry" <br**********@newsgroups.nospam> wrote in message
news:uY*************@TK2MSFTNGP12.phx.gbl...
thanks!

"Cor Ligthert" <no**********@planet.nl> wrote in message
news:et*************@TK2MSFTNGP11.phx.gbl...
> Brian,
>
> Yes
>
> StrConv
> http://msdn.microsoft.com/library/de...fctstrconv.asp >
> I hope this helps?
>
> Cor
>
>



Nov 21 '05 #6

P: n/a
thats what i was looking for, thanks

"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:e6**************@tk2msftngp13.phx.gbl...
* "Brian Henry" <br**********@newsgroups.nospam> scripsit:
is there function to do proper case formatting on a string?


\\\
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://dotnet.mvps.org/dotnet/faqs/>

Nov 21 '05 #7

P: n/a
No it would return ( and display in this case ) a New string where all the
characters from the origional are converted to ToUpper. Strings in .NET are
immutable, you cannot convert them once they are created.

--

OHM ( Terry Burns )
. . . One-Handed-Man . . .
If U Need My Email ,Ask Me

Time flies when you don't know what you're doing

"Brian Henry" <br**********@newsgroups.nospam> wrote in message
news:e$*************@TK2MSFTNGP12.phx.gbl...
but wouldn't toupper convert every char in the string to uppercase? where
proper case would just say "My text string. This is fun." as where toupper
would be "MY TEXT STRING. THIS IS FUN."
"One Handed Man ( OHM - Terry Burns )" <news.microsoft.com> wrote in message news:ur*************@TK2MSFTNGP12.phx.gbl...
Dim m As New String("mylower")

MsgBox(m.ToUpper)
--

OHM ( Terry Burns )
. . . One-Handed-Man . . .
If U Need My Email ,Ask Me

Time flies when you don't know what you're doing

"Brian Henry" <br**********@newsgroups.nospam> wrote in message
news:uY*************@TK2MSFTNGP12.phx.gbl...
thanks!

"Cor Ligthert" <no**********@planet.nl> wrote in message
news:et*************@TK2MSFTNGP11.phx.gbl...
> Brian,
>
> Yes
>
> StrConv
>

http://msdn.microsoft.com/library/de...fctstrconv.asp
>
> I hope this helps?
>
> Cor
>
>



Nov 21 '05 #8

P: n/a

"One Handed Man ( OHM - Terry Burns )" <news.microsoft.com> wrote in message
news:u3**************@tk2msftngp13.phx.gbl...
No it would return ( and display in this case ) a New string where all the
characters from the origional are converted to ToUpper. Strings in .NET are immutable, you cannot convert them once they are created.


Yes, but the point is that he wanted PROPER case, not UPPER.
Nov 21 '05 #9

P: n/a
I was completly perplex when I saw this answer from you.

Here the thread where you showed StrConv and the discussion with Herfried.

http://tinyurl.com/5rzoe

To what I have looked at that time with a very big smile on my face.

Cor
Nov 21 '05 #10

P: n/a
* "Brian Henry" <br**********@newsgroups.nospam> scripsit:
but wouldn't toupper convert every char in the string to uppercase? where
proper case would just say "My text string. This is fun." as where toupper
would be "MY TEXT STRING. THIS IS FUN."


That's true.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>
Nov 21 '05 #11

P: n/a
I misread it; for some reason, I translated Proper to ToUpper, my
appologies.

My universal translator must be malfunctioning.

;-)

--

OHM ( Terry Burns )
. . . One-Handed-Man . . .
If U Need My Email ,Ask Me

Time flies when you don't know what you're doing

"Jeff Johnson [MVP: VB]" <i.***@enough.spam> wrote in message
news:uR**************@TK2MSFTNGP10.phx.gbl...

"One Handed Man ( OHM - Terry Burns )" <news.microsoft.com> wrote in message news:u3**************@tk2msftngp13.phx.gbl...
No it would return ( and display in this case ) a New string where all the characters from the origional are converted to ToUpper. Strings in .NET

are
immutable, you cannot convert them once they are created.


Yes, but the point is that he wanted PROPER case, not UPPER.

Nov 21 '05 #12

P: n/a
Ah yes, the old SentenceCase Vs ProperCase.

:)

--

OHM ( Terry Burns )
. . . One-Handed-Man . . .
If U Need My Email ,Ask Me

Time flies when you don't know what you're doing

"Cor Ligthert" <no**********@planet.nl> wrote in message
news:uy**************@TK2MSFTNGP12.phx.gbl...
I was completly perplex when I saw this answer from you.

Here the thread where you showed StrConv and the discussion with Herfried.

http://tinyurl.com/5rzoe

To what I have looked at that time with a very big smile on my face.

Cor

Nov 21 '05 #13

This discussion thread is closed

Replies have been disabled for this discussion.