Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Stripping space from strings
Message
 
 
À
25/11/1996 19:27:52
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00013477
Message ID:
00013668
Vues:
31
>How do I strip out extra spaces and carriage returns and line feeds from character strings that are in memo fields?

BUGFIX:

Here's a non-API method for those annoying double carriage returns:

* First, get rid of line feeds:
myString=chrTran(MyString,chr(10),"")
* Now, iteratively remove all double carriage returns.
dblCR=chr(13)+chr(13)
Do While dblCR $ myString
myString=StrTran(myString, dblCr, chr(13))
***** Prior posting used ChrTran in previous command. Wrong.
EndDo
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform