Solved

Remove carriage return conditionally

Posted on 2006-06-23
5
1,065 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

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Currency Conversion? 1 87
detecting  the added row index in a datagridview 3 71
How to obtain Administrator permission when you are the Administrator 6 78
Query Syntax 17 36
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
Computer science students often experience many of the same frustrations when going through their engineering courses. This article presents seven tips I found useful when completing a bachelors and masters degree in computing which I believe may he…
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

809 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