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 11:57:28
 
 
À
19/07/2004 11:09:22
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00925773
Message ID:
00925793
Vues:
20
cString = "This is what "+CHR(13)+CHR(10)+"I want to keep!"  ;
+  Space (10) + Chr (13) + Chr (10) + Chr (13) + Chr (10) ;
+  Space ( 1) + Chr (13) + Chr (10) + ;
   Space ( 1)
CLEAR    
?   '<'+RTRIMCHARS(@m.cString,' '+CHR(13)+CHR(10))+'>'
          
PROCEDURE RTRIMCHARS(s,c)
	RETURN LEFT(m.s,LEN(RTRIM(CHRTRAN(m.s,m.c,SPACE(LEN(m.c))))))
ENDPROC
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform