Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Trim function to remove blanks + returns
Message
 
To
21/07/1996 16:52:35
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00004308
Message ID:
00004322
Views:
36
>>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/
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform