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
Solved

Remove carriage return conditionally

Posted on 2006-06-23
5
1,066 Views
Last Modified: 2012-06-21
Hi,

I am looking for a good way in VBScript to remove a vbCrLf condtionally.  Basically to remove the carriage return based on a substring of data.  

Thanks!
0
Comment
Question by:orionpm
5 Comments
 
LVL 14

Expert Comment

by:dlwyatt82
ID: 16971236
You need to be more specific.  However, Regular Expressions are generally well-suited to any string parsing task such as this.
0
 
LVL 85

Accepted Solution

by:
Mike Tomlinson earned 500 total points
ID: 16971747
I take it you don't want to remove all vbCrLfs with a Replace command:

    someStringVariable = Replace(someStringVariable, vbCrLf, "")
0
 
LVL 1

Author Comment

by:orionpm
ID: 16972190
I figured this one out and have requested that this question be removed.... Thanks...

http://www.experts-exchange.com/Community_Support/Q_21897467.html
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

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

Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
Entering a date in Microsoft Access can be tricky. A typo can cause month and day to be shuffled, entering the day only causes an error, as does entering, say, day 31 in June. This article shows how an inputmask supported by code can help the user a…

839 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