Solved

I need help adding a line terminator in my VB6 application

Posted on 2014-01-09
1
299 Views
Last Modified: 2014-04-17
Hi Experts,
I am building a .csv file from an Array in my vb6 application.  The client has asked me to add a Line Terminator of Carriage Return, Line Feed (CRLF) to each row.  How can I do this?

Here is sample of how I create my rows of data as I loop through my Array:
 
strRecord = strRecord & "," & Trim$(Replace(tempRow.Extract(28, 1, 1), ",", "''"))


How do I add the CRLF terminator to this?  Thanks in Advance.
mrotor
0
Comment
Question by:mainrotor
[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
1 Comment
 
LVL 10

Accepted Solution

by:
acbxyz earned 500 total points
ID: 39768644
There is a special constant vbCRLF
strRecord = strRecord & "," & Trim$(Replace(tempRow.Extract(28, 1, 1), ",", "''")) & vbCRLF
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

Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
Whether you’re a college noob or a soon-to-be pro, these tips are sure to help you in your journey to becoming a programming ninja and stand out from the crowd.
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 …
Six Sigma Control Plans

707 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