Results 1 to 4 of 4

Thread: [RESOLVED] Convert a whole string into caps

  1. #1

    Thread Starter
    Hyperactive Member Darkened Linux's Avatar
    Join Date
    Jun 2009
    Location
    Canada
    Posts
    296

    Resolved [RESOLVED] Convert a whole string into caps

    I have found some code that caps the 1st letter of a sting, but I am looking for some code that will convert a whole string into caps.

    This is the code I have found
    Code:
    convert a whole string into caps
    Thanks for you help!
    [COLOR="Black"]

  2. #2
    Master Of Orion ForumAccount's Avatar
    Join Date
    Jan 2009
    Location
    Canada
    Posts
    2,802

    Re: Convert a whole string into caps

    You mean:

    vb.net Code:
    1. Dim s As String = "convert a whole string into caps".ToUpper()
    2. MessageBox.Show(s)

    ?

  3. #3
    Raging swede Atheist's Avatar
    Join Date
    Aug 2005
    Location
    Sweden
    Posts
    8,018

    Re: Convert a whole string into caps

    Call the strings ToUpper method:
    Code:
    Dim myString as String = "Hello"
    MessageBox.Show(myString.ToUpper())
    Edit: Dang, too late!
    Rate posts that helped you. I do not reply to PM's with coding questions.
    How to Get Your Questions Answered
    Current project: tunaOS
    Me on.. BitBucket, Google Code, Github (pretty empty)

  4. #4

    Thread Starter
    Hyperactive Member Darkened Linux's Avatar
    Join Date
    Jun 2009
    Location
    Canada
    Posts
    296

    Re: Convert a whole string into caps

    Thanks for the fast response, also the code work well! Thanks!
    [COLOR="Black"]

Tags for this Thread

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