Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. accept a string and convert the case of the characters [modified]

accept a string and convert the case of the characters [modified]

Scheduled Pinned Locked Moved Visual Basic
csharp
7 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • U Offline
    U Offline
    User 4510968
    wrote on last edited by
    #1

    Hello Friends, I like to accept a string and convert the case of the characters using vb .net eg Input String : aBcDE Output String : AbCde depanding on the user selection Thanks In Advance Praveen

    modified on Wednesday, May 27, 2009 5:17 PM

    L L 3 Replies Last reply
    0
    • U User 4510968

      Hello Friends, I like to accept a string and convert the case of the characters using vb .net eg Input String : aBcDE Output String : AbCde depanding on the user selection Thanks In Advance Praveen

      modified on Wednesday, May 27, 2009 5:17 PM

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      OP before modficiation

      Member 4514218 wrote:

      Hello Friends,
      I like to accept a string and convert the case of the characters using vb .net
      eg Input String : aBcDE
      Output String : ABCDE
      Output String : abcde
      depanding on the user selection

      Thanks In Advance
      Praveen

      My Response

      Check out the String.ToUpper() and String.ToLower() methods, you can use Radioboxes for the selection,
      and read your class book before bringing homework here.

      The OP first asked how to make a string either all upper or all lower case based off user selection, which is why the above post exists here. Don't want you guys thinking I posted random garble :doh: See post below for response to *current* thread.

      Check out the CodeProject forum Guidelines[^]

      modified on Wednesday, May 27, 2009 5:39 PM

      L 1 Reply Last reply
      0
      • U User 4510968

        Hello Friends, I like to accept a string and convert the case of the characters using vb .net eg Input String : aBcDE Output String : AbCde depanding on the user selection Thanks In Advance Praveen

        modified on Wednesday, May 27, 2009 5:17 PM

        L Offline
        L Offline
        Lost User
        wrote on last edited by
        #3

        So you just want to flip each case? Way to change the requirements after I answer your other post. It usually goes against me to do someone's homework for them, and after I posted my other reply I initially had regret, going against my common practice. This time I stick to it, go read your book or you will fail your course.

        Check out the CodeProject forum Guidelines[^]

        1 Reply Last reply
        0
        • U User 4510968

          Hello Friends, I like to accept a string and convert the case of the characters using vb .net eg Input String : aBcDE Output String : AbCde depanding on the user selection Thanks In Advance Praveen

          modified on Wednesday, May 27, 2009 5:17 PM

          L Offline
          L Offline
          Luc Pattyn
          wrote on last edited by
          #4

          Easy. Convert to ASCII, XOR all letters with 0x20, convert back to Unicode. :laugh: Now what should happen with some specials, such as the trademark and registered signs?

          Luc Pattyn [Forum Guidelines] [My Articles]


          The quality and detail of your question reflects on the effectiveness of the help you are likely to get. Show formatted code inside PRE tags, and give clear symptoms when describing a problem.


          1 Reply Last reply
          0
          • L Lost User

            OP before modficiation

            Member 4514218 wrote:

            Hello Friends,
            I like to accept a string and convert the case of the characters using vb .net
            eg Input String : aBcDE
            Output String : ABCDE
            Output String : abcde
            depanding on the user selection

            Thanks In Advance
            Praveen

            My Response

            Check out the String.ToUpper() and String.ToLower() methods, you can use Radioboxes for the selection,
            and read your class book before bringing homework here.

            The OP first asked how to make a string either all upper or all lower case based off user selection, which is why the above post exists here. Don't want you guys thinking I posted random garble :doh: See post below for response to *current* thread.

            Check out the CodeProject forum Guidelines[^]

            modified on Wednesday, May 27, 2009 5:39 PM

            L Offline
            L Offline
            Luc Pattyn
            wrote on last edited by
            #5

            EliottA wrote:

            Don't want you guys thinking I posted random garble

            Nah. Just making up random questions now? :wtf:

            Luc Pattyn [Forum Guidelines] [My Articles]


            The quality and detail of your question reflects on the effectiveness of the help you are likely to get. Show formatted code inside PRE tags, and give clear symptoms when describing a problem.


            L 1 Reply Last reply
            0
            • L Luc Pattyn

              EliottA wrote:

              Don't want you guys thinking I posted random garble

              Nah. Just making up random questions now? :wtf:

              Luc Pattyn [Forum Guidelines] [My Articles]


              The quality and detail of your question reflects on the effectiveness of the help you are likely to get. Show formatted code inside PRE tags, and give clear symptoms when describing a problem.


              L Offline
              L Offline
              Lost User
              wrote on last edited by
              #6

              Luc Pattyn wrote:

              Just making up random questions now?

              Those are the only ones I know the answer to :doh:

              Check out the CodeProject forum Guidelines[^]

              L 1 Reply Last reply
              0
              • L Lost User

                Luc Pattyn wrote:

                Just making up random questions now?

                Those are the only ones I know the answer to :doh:

                Check out the CodeProject forum Guidelines[^]

                L Offline
                L Offline
                Luc Pattyn
                wrote on last edited by
                #7

                :thumbsup: Keep up the good work.

                Luc Pattyn [Forum Guidelines] [My Articles]


                The quality and detail of your question reflects on the effectiveness of the help you are likely to get. Show formatted code inside PRE tags, and give clear symptoms when describing a problem.


                1 Reply Last reply
                0
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                • Login

                • Don't have an account? Register

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • World
                • Users
                • Groups