Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Removing embedded spaces
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00561036
Message ID:
00561050
Vues:
33
Or even shorter
>
>cStringIn = 'Peter the embedded      space    man'
>cStringOut = cStringIn
>
do while space(2) $ cStringOut
    cStringOut = strtran( cStringOut, space(2), space(1) )
enddo
>
>? cStringOut
>
>
< SNIP >

You can also use Reduce( ) function from FoxTools library
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform