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. C#
  4. remove white spacing between letters in string

remove white spacing between letters in string

Scheduled Pinned Locked Moved C#
databasehelp
5 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.
  • M Offline
    M Offline
    monafr81
    wrote on last edited by
    #1

    I Have A Problem in Removing white spaces between letters in single string word which retrieved from sql data Base :confused: thanks , Mona

    LA ELAH ELA ALLAH MOHAMED RASOL ALLAH

    S B 2 Replies Last reply
    0
    • M monafr81

      I Have A Problem in Removing white spaces between letters in single string word which retrieved from sql data Base :confused: thanks , Mona

      LA ELAH ELA ALLAH MOHAMED RASOL ALLAH

      S Offline
      S Offline
      snorkie
      wrote on last edited by
      #2

      Care to give an example? What is the string from the DB? What should it look like? What have you tried? Hogan

      M 1 Reply Last reply
      0
      • M monafr81

        I Have A Problem in Removing white spaces between letters in single string word which retrieved from sql data Base :confused: thanks , Mona

        LA ELAH ELA ALLAH MOHAMED RASOL ALLAH

        B Offline
        B Offline
        BoneSoft
        wrote on last edited by
        #3

        If you just want to remove all whitespaces...

        private string StripWhitespace(string input) {
        return input.Replace(" ", "").Replace("\t", "").Replace("\n", "");
        }

        If that's not what you're after, you'll have to be more specific.


        Try code model generation tools at BoneSoft.com.

        M 1 Reply Last reply
        0
        • B BoneSoft

          If you just want to remove all whitespaces...

          private string StripWhitespace(string input) {
          return input.Replace(" ", "").Replace("\t", "").Replace("\n", "");
          }

          If that's not what you're after, you'll have to be more specific.


          Try code model generation tools at BoneSoft.com.

          M Offline
          M Offline
          monafr81
          wrote on last edited by
          #4

          Thank you BonSoft For Your Help , Your Code Works With me and solve the problem ;) Thanks Mona

          LA ELAH ELA ALLAH MOHAMED RASOL ALLAH

          1 Reply Last reply
          0
          • S snorkie

            Care to give an example? What is the string from the DB? What should it look like? What have you tried? Hogan

            M Offline
            M Offline
            monafr81
            wrote on last edited by
            #5

            Thank You snorkie For Your Response Mona

            LA ELAH ELA ALLAH MOHAMED RASOL ALLAH

            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