Solved

Stripping CR/LF in VB

Posted on 2003-12-05
4
663 Views
Last Modified: 2010-05-18
Hi,

Does someone have a function for stripping CR/LF from a string?

THX

Rich
0
Comment
Question by:RichardFox
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 

Author Comment

by:RichardFox
ID: 9885322
TO clarify, may be imbedded and/or multiple CR/LFs
0
 
LVL 5

Accepted Solution

by:
mccainz2 earned 50 total points
ID: 9885330
mystring=myreplace(mystring,vbcr,"")
mystring=replace(mystring,vblf,"")
mystring=replace(mystring,vbcrlf,"")


0
 
LVL 5

Expert Comment

by:mccainz2
ID: 9885362
typo in the first line , myreplace should be simply replace....
0
 

Author Comment

by:RichardFox
ID: 9896718
Thanks!
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Prevent checkbox click event occur while editing it in vb6 8 73
Help me. 3 77
Problem to With line 4 86
Publisher:   Unknown     VB.exe Application 1 31
Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

734 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question