Results 1 to 4 of 4

Thread: Capitalizing Strings.

  1. #1

    Thread Starter
    Member
    Join Date
    Mar 2000
    Posts
    47

    Smile

    Hi!

    Which is the quickest way to capitalize a string in my VB6-app? I need a function that capitalizes also scands and special characters (ä,ö,å, ...).
    e.g. "this is åke and he has programs in c:\hassu\öklö pöklö" --> "This Is Åke And He Has Programs In C:\Hassu\Öklö Pöklö"


    Thanks,

    LK

  2. #2
    Hyperactive Member
    Join Date
    Aug 2000
    Posts
    258
    mess with this
    Code:
    UCase(string)
    Visual Basic 6 SP4 on win98se

    QUIT THE RAT RACE BECAUSE YOUR MESSING THE WORLD UP !!!!!

  3. #3

    Thread Starter
    Member
    Join Date
    Mar 2000
    Posts
    47
    Thanks.. but could some one tell me about this a little bit more?

  4. #4
    Fanatic Member Kaverin's Avatar
    Join Date
    Oct 2000
    Posts
    930
    For doing something like "this is a test" into "This Is A Test", you can use this:
    Code:
    Text1.Text = StrConv(Text1.Text, vbProperCase)
    It does work on special characters too like the ones you mentioned. As for capitalizing the letters in your example path, I think you'll have to make up something to do that yourself using UCase.
    I'm baaaack...
    VB5 Professional Edition, VC++ 6
    Using a 1 gHz Thunderbird, 256 mb RAM, 40 gb HD system with Win98se

    I feel special because I finally figured out how to loop midis: Post link
    I'm a fanatic too

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width