Solved

Stripping CR/LF in VB

Posted on 2003-12-05
4
659 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
  • 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

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
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…

760 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now