Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Removing extra blanks in a memo field
Message
De
04/04/2000 16:24:32
Michael Dougherty
Progressive Business Publications
Malvern, Pennsylvanie, États-Unis
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Divers
Thread ID:
00355212
Message ID:
00355250
Vues:
27
>>noxspaces = strtran(str2bclean,space(2),"") &&remove blanks more than one space

>This will convert "test 1 2" to "test 12"
>which I don't think is the desired effect.

It'll only strip 2 spaces as a pair. I wrote it that way because it's easier to read than quote-space-space-quote, especially considering how UT strips duplicate spaces itself.

Actually, if there are two space between words, this code will leave NO spaces, running the words together. That would be bad.

Disregard this routine, it won't do what it's supposed to do.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform