Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Removing repetitive spaces from strings
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00032009
Message ID:
00032335
Vues:
43
>Just out of idle curiosity, why not STRTRAN(lcRetVal,' ','')

lcString = "a" + SPACE(4) + "a"
lcString = STRTRAN(lcString, SPACE(2), SPACE(1))
? lcString && This prints "a**a", where * is a blank

lcString = "a" + SPACE(4) + "a"
lcString = STRTRAN(lcString, SPACE(1), "") && Remove all blanks
? lcString && This prints "aa"

What I need to print out is "a*a", where * is a blank.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform