473,395 Members | 1,885 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Trim/Remove Unwanted Spacing In Text

Hi,

Is there a function to remove double spacing between some names in a
text field. I have a text field with names where the name can be 1, 2,
3 or rarely 4 words & there is dounle spacing between them. I wish to
trim out the double spacing to single.

The TRIM functions I have found only seem to work on left or right, ie
leading or trailing spaces.

Thanks

Nov 13 '05 #1
1 2611
You could try the replace function

mystring = replace(mystring, " "," ")

David Gibson wrote in message
<o3********************************@4ax.com> :
Hi,

Is there a function to remove double spacing between some names in a
text field. I have a text field with names where the name can be 1, 2,
3 or rarely 4 words & there is dounle spacing between them. I wish to
trim out the double spacing to single.

The TRIM functions I have found only seem to work on left or right, ie
leading or trailing spaces.

Thanks


--
Roy-Vidar

Nov 13 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Ding Lei | last post by:
Hello folks, I am using xml for a newsletter, along with a xsl file to display it in a browser. In the xml file, a newline, tab or whitespace character all causes exactly one spacing between two...
5
by: Geoff Hague | last post by:
(posted to both alt.html and c.i.w.a.s. as I'm not sure what, exactly, is at fault here) I'm doing a site re-design: http://www.captainsoftheworld.com/cotw/index.html...
1
by: Chris Kettenbach | last post by:
Good Morning, I have a text box on a webform I use to display a phone number. The database field does not contain parentheses or hyphens. I want the use to be able to change the textbox text and...
2
by: Xero | last post by:
I use this block of code to output a number to a plain text file: Dim counter As Double counter = 1 FileOpen(1, "output.txt", OpenMode.Output) PrintLine(1, counter) FileClose(1) Then I...
3
by: Danny Yeadon | last post by:
Hi I need to remove unwanted characters from phone numbers from my phone bill to analyse the data. Some examples are 02 48222222 i need to remove the space +61266667656 ...
56
by: Zytan | last post by:
Obviously you can't just use a simple for loop, since you may skip over elements. You could modify the loop counter each time an element is deleted. But, the loop ending condition must be...
0
by: Michel Esber | last post by:
Hello, Linux RedHat AS4 running DB2 V8 FP15. I have very large tables (100 Million+ rows), and I only need to keep 6 months of data online/available. The tables have a timestamp field. I...
0
by: howa | last post by:
Consider a simple HTML: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> <head> <title>YUI</title> <link rel="stylesheet"...
4
by: DetrieZ | last post by:
This is only removing the text characters.. I need it to remove all the text and everything after it Public Function ExtractNumeric(TextString As String) As String Dim x As Long Dim sDigit...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.