Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Getting rid of spaces

Status
Not open for further replies.

dabdo555

Programmer
Joined
Dec 3, 2003
Messages
15
Location
US
I have a string that I want to get rid of any blank spaces at the end of it. Example....

"John Doe "

to

"John Doe"

Is there a way to find the last character spot and then delete off the rest???
 
So....you think its that EASY ehhhh????....well....ehhhh....youre right....thank you! :)
 
dabdo555 sometime you may find these useful as well

Remove all spaces - Replace(MyString, " ", "")
Removes spaces from left - LTrim(MyString)
Removes spaces from right - RTrim(MyString)

Best wishes for 2004
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top