Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Trim function to remove blanks + returns
Message
 
À
21/07/1996 16:52:35
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00004308
Message ID:
00004322
Vues:
32
>>I think maybe alltrim(substr(x,1,at(chr(13),x)-1))
>
>I only want to remove the trailing CRs not those within the message. That's why I need a function.

n = occurs(chr(13),x)

if n > 0
y = alltrim(substr(x,1,at(chr(13),x,n)-1))
endif

Tom
Tom
--------------------------------
Tom O'Hare
407-299-4268 -- tom@redtile.com -- http://www.redtile.com/
Independent Programmer Using Visual FoxPro, Visual Basic & more...
Operations Manager -- Virtual FoxPro User Group (VFUG)
http://www.vfug.org/ -- tom@vfug.org
President -- Central Florida FoxPro User Group (CFFUG)
http://www.redtile.com/foxpro/
Universal Thread Most Valued Professional (MVP)
http://www.transformation.com/foxpro/
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform