Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Getting rid of carriage returns in memo fields
Message
De
20/08/1999 23:17:52
 
 
À
20/08/1999 21:26:10
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00256063
Message ID:
00256190
Vues:
27
You're right. What I don't understand is the "I don't know for sure"... because I'm sure you've tested it! :))

Here's an alternative solution (if it is acceptable):

REPLACE Table1.Memo WITH CHRTRAN(table1.memo,CHR(13)+CHR(10),' ')

The trick is to replace (not remove) the chr(13) and chr(10) with spaces. This is MUUUUUUCH faster. Sometimes it makes THE difference.

Vlad

>>REPLACE Table1.Memo WITH STRTRAN(STRTRAN(table1.memo,CHR(13),''),CHR(10),'')
>
>I don't know for sure, thats why I'm asking you, how 'bout:
>
>REPLACE Table1.Memo WITH CHRTRAN(table1.memo,CHR(13)+CHR(10),'')
>?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform