Newbies selfstorage Posted April 6, 2008 Newbies Posted April 6, 2008 I have a list of all the cities in the usa. I need to be able to replace he space between the words with a dash "-". Sometimes the city is 1,2 or 3 words. Can anyone help?
Ocean West Posted April 6, 2008 Posted April 6, 2008 You could use substitute(CityList ; " " ; "-" ) this will replace all spaces with a dash.
LaRetta Posted April 6, 2008 Posted April 6, 2008 (edited) But what if the city is two words? Are you saying your list looks like: San Francisco, Detroit, New Mexico, Los Angeles, Denver ... and you want it to look like: San Francisco - Detroit - New Mexico - Los Angeles - Denver ? Please clarify a bit for us. UPDATE: Why don't you split them into a table with records now while you have the chance, since that's how they should be anyway? Edited April 6, 2008 by Guest Added update and fixed typo
Newbies selfstorage Posted April 6, 2008 Author Newbies Posted April 6, 2008 that did the trick........thanks so very much.
Newbies selfstorage Posted April 6, 2008 Author Newbies Posted April 6, 2008 The above solutions was what I needed. Thanks for the help! I really appreciated it
Recommended Posts
This topic is 6135 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now