Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Removing extra spaces in MIDDLE of str.
Message
De
25/07/2001 13:50:58
 
 
À
25/07/2001 13:47:03
Peter Brama
West Pointe Enterprises
Detroit, Michigan, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00535205
Message ID:
00535212
Vues:
12
Use STRTRAN(charexpr,' ',' ')
That is replace double spaces with a single space. This may need to be run several times because on the first iteration four spaces becomes two. On the next iteration the two spaces left become one.

>Is there any VFP routines that can remove (or replace) multiple space occurances in the middle of a string?
>
>I am processing data from another source. The NAME comes across as:
>
>FirstNameLastName
>
>I'd like to strip out the multiple spaces and leave it with just one space.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform