Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Remove SPACES in between
Message
De
21/07/1997 12:06:27
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00040913
Message ID:
00040944
Vues:
35
>>>How could I remove spaces in between a string.
>>>Eg. a="ABC DEF GHI JKL"
>>>I would like the result to be "ABCDEFGHIJKL", removing all spaces in
>>>between.
>>>Pls advice, thank you.
>>
>>cResult=STRTRAN(a,space(1),"")
>
>Of the two answers given, I thinks the one above is more readable. But, would cResult=STRTRAN(a,space(1),space(0)) work too? I've never tried to use a SPACE(0) before.

Yes, it will.
Edward Pikman
Independent Consultant
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform