Solved

Stripping CR/LF in VB

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Add a task in Outlook from access 11 35
How to set the sa password in a vb6 code for sql connection 9 38
Protecting vb6 & .Net code Obfuscation 18 97
Advice in Xamarin 21 57
Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

864 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

23 Experts available now in Live!

Get 1:1 Help Now