proper case

  • Thread starter Thread starter Brian Henry
  • Start date Start date
B

Brian Henry

is there function to do proper case formatting on a string? FoxPro use to
have a proper function that did this for you... thanks
 
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 said:
is there function to do proper case formatting on a string?

\\\
Dim s As String = StrConv("hello world!", VbStrConv.ProperCase)
///
 
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."
 
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
 
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.
 
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
 
* "Brian Henry said:
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.
 
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
 
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top