1 Replies - 1220 Views - Last Post: 07 November 2012 - 08:49 PM Rate Topic: -----

#1 y2161994  Icon User is offline

  • New D.I.C Head

Reputation: 15
  • View blog
  • Posts: 34
  • Joined: 08-July 11

About a triming function in Visual Basic

Posted 05 November 2012 - 08:01 AM

Hi everyone,
I have a question that we use Ltrim() to eliminate starting space,Rtrim() to eliminate ending spaces or trim() for eliminating starting and ending spaces.Is it any function that wil trim in between spaces.
e.g.
Let I have a string str="a b c",so is there any function that will convert this string to str="abc".
If is there any function,do comment.I am a newbie about VB 6.0 and I want to know about this,If you have anything interesting trick or tweaks about VB please do mention also this in comment.

Thanking you,,,!!!

:)

Is This A Good Question/Topic? 0
  • +

Replies To: About a triming function in Visual Basic

#2 BobRodes  Icon User is offline

  • Your Friendly Local Curmudgeon
  • member icon

Reputation: 571
  • View blog
  • Posts: 2,979
  • Joined: 19-May 09

Re: About a triming function in Visual Basic

Posted 07 November 2012 - 08:49 PM

Yes there is. Use the Replace function, and replace all spaces with a blank string. :)
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1