Empty space, i wont delete

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Smurfas
    New Member
    • Jul 2008
    • 30

    Empty space, i wont delete

    Hi, I have another problem.
    I char[] converter to string = variable; , and now string text end is empty place.
    I must new string(variable ) plus word: "end";
    Very simple:
    a = variable + "end";
    But past variable rise empty space, and word end very far.
    How delete this empty place?
    variable = variable.Replac e(" ", ""); - not work

  • Curtis Rutland
    Recognized Expert Specialist
    • Apr 2008
    • 3264

    #2
    Wow, .Replace() didn't work? I think you need to post the relevant source code so we can see whats going on here.

    Comment

    • r035198x
      MVP
      • Sep 2006
      • 13225

      #3
      Use Trim() instead of Replace. There are many other space characters which are not equal to " ".

      Comment

      Working...