Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Removing extra spaces in MIDDLE of str.
Message
 
 
À
25/07/2001 22:04:46
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00535205
Message ID:
00535495
Vues:
18
>>So, you would end with MarkGoldin. I'm not sure, this is what you want :)
>
>If a string is 'mark goldin' then yes, but isn't that what you want?
>Mark

Hi Mark,

The original question was how to remove spaces from the middle in the string. Definitely, one last space should be left, otherwise you would have FirstNameLastName without spaces at all. If this string is less than 64K (I hope, it is), reduce function from FoxTools should do its job.

There could be different combinations, say:
Mark     Anatolievich      Goldin
Mark     I      Goldin
Mark    Goldin     Jr.
,
etc.

you should reduce spaces to just one space.

Actually, I have an application written, where I dealt with lots of different name formats to transform them into our standard. It was quite complicated algorithm...
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform