Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Best way to strip out trailing blanks/CR/LFs from a stri
Message
De
19/07/2004 13:16:10
John Baird
Coatesville, Pennsylvanie, États-Unis
 
 
À
19/07/2004 12:59:19
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00925773
Message ID:
00925842
Vues:
17
>>For I = 1 To 100000
>> cRem = left(cSourceString, len (rtrim (chrtran (cSourceString, chr(10) + chr(13), ' '))))
>>EndFor
>>

>>
>>For I = 1 To 100000
>> cRem = Left (cSourceString, Len (rTrim (ChrTran (cSourceString, c, Space (Len (c))))))
>>EndFor


Both of these get the prize for code obfuscation, the last more so than the first.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform