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:
00561058
Vues:
26
There you go! :)

>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
Hector Correa
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform