CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Mar 2002
    Location
    United Kingdom
    Posts
    60

    Removing spaces...

    Hi all,

    I have tried to use Trim to remove spaces but they dont seem to remove spaces within words/characters?

    If I have a string such as: "Word1 Word2" etc. how can I remove the space IN BETWEEN the words?

    Thanks

    Mark

  2. #2
    Join Date
    Feb 2003
    Posts
    78
    Code:
    Replace(StringThatHasSpace, " ","")

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

Featured