MSFN Forum: Removing spaces - MSFN Forum

Jump to content



Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Removing spaces Rate Topic: -----

#1 User is offline   thosan 

  • Newbie
  • Group: Members
  • Posts: 11
  • Joined: 09-September 04

Posted 15 October 2004 - 06:02 AM

I have a slight problem, I either have to get rid of the space between som characters (TE 1 to TE1) and it seems that trim doesn't take care of it.

My other option it that ensure that the space is there, and I wonder how that can be accomplished.

The language that I'm working in is VB.NET


#2 User is offline   CoffeeFiend 

  • Coffee Aficionado
  • Group: Super Moderator
  • Posts: 5,031
  • Joined: 14-July 04
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 15 October 2004 - 10:23 AM

.

This post has been edited by crahak: 07 November 2006 - 07:06 AM


#3 User is offline   jdoe 

  • Advanced Member
  • PipPipPip
  • Group: Banned
  • Posts: 314
  • Joined: 02-May 04

Posted 15 October 2004 - 11:56 PM

Without a loop you can do



Dim Str as String
Str = "TE 1"
Str = Str.Replace(" ","")


Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2011 msfn.org
Privacy Policy