473,699 Members | 2,738 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Removing the symbols for Carriage Return and Line Feed

6 New Member
I am using vb.net and have a long string of text. When I use vbnewline or vbCrLf, for a carraige retun, I get a black square box in the SQL database table. I need the carriage return but I don't want the symbol to show up in SQL table because when another application (vb.6) is opened which uses the same SQL dbase table and shows the text, I get the carriage return, but I also get the unwanted symbol |

What code or command in vb.net can I use that will still give me the carriage return but not put the black box in the sql dbase table?
Feb 20 '08 #1
4 8376
Plater
7,872 Recognized Expert Expert
I would guess that your program inserts a "\r\n" as the newline and the vb6 only looks for "\n".
Just have vb6 remove the "\r" character, or don't insert the "\r" is your vbnet side.
Feb 20 '08 #2
LOCAFO
6 New Member
I don't understand what you are talking about. Maybe this will better help you understand my dillema. The xml file that I receive has ~ ~. This is where the carriage return/line break should be. Therefor, In my vb.net code, I do the following command. NewValue = Replace(NewValu e.string, m_linebreak, VbCrLf).

NewValue is the long string of the xml data and m_LineBreak is ~ ~.

The black square boxes shows up in the database and in vb6, I get the || marks.
Feb 22 '08 #3
Plater
7,872 Recognized Expert Expert
The square boxes ARE the carriage return (\r) and Line Feed (\n), (most?)database s will not show the line breaks in their stored values.
Why VB6 is being screwy with it I don't know. Seems like there is a very simple way for this not to be a problem.
Store the values with ~ ~, then when reading the data, change the ~ ~ to the carriage return line feed.
Feb 25 '08 #4
If you are using a textbox go to the properties and make it multiline
Oct 9 '10 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

6
31306
by: | last post by:
Hi, I want to send an Email using ASP (I know how to to this) The body of the Email contains several variabels How do I concat string values and separate them by carriage returns/ Line feeds? Any help will be greatly appreciate. Regards,
1
2209
by: Neil S. | last post by:
I am writing an ISAPI filter which is using CAPICOM to encrypt and decrypt cookie information. I've found that the encryption string being returned by CAPICOM a has carriage control and line feed. (Hex 0d0a). My filter adds the header in the correct format, including the entire encrypted cookie value (set-cookie: mycookie=theEncryptedValue;path=/;). However, when the isapi filter finishes running, the browser only gets part of the...
1
850
by: wschaub | last post by:
Is there any way of forcing an ASMX web service not to translate a carriage return – line feed (\r\n) with a (\n\n), in other words the carriage return \r is replaced with a \n if contained as part of a string that is transferred to a web service method. The XML 1.1 standard is supposed to address this problem, however, we are not aware of any plans of ASMX and serializers to implement this standard in the near future.
2
38764
by: John Dalberg | last post by:
Hi What's the regex to remove the carriage return/line field from a string? These can occur multiple times in the string as in xxx\r\n\r\n. -- John Dalberg
2
18770
by: Torsten Zachert | last post by:
I would like to insert some text with embedded carriage return/line feed into a MS Access text field with OleDb and C# ADO.NET. I tried to use "\n" in combination with "\r". If I display the input in a text field I only see quads. Tia Torsten
0
1109
by: John Dalberg | last post by:
I noticed that when I add key/value pairs to a NameValueCollection variable and send this collection through a POST using WebClient.UploadValues method, the recepient process receives the collection ok except that the last value has a \r\n padded, which is not expected. Is this normal behaviour? My workaround is to add another pair/value which serves as dummy and let the \r\n get padded to it.
2
900
by: Enrico Sabbadin | last post by:
Hi, A few days go I fiund iut that the xmlserializer strips away /r/n out during deserialization (and just leave /n) ... I found out that you can resolve this problem using the deserialize overlaod that takes an xmltextreader instead of a stream .. However when it's time to Web Services you have no such a control over the deserialization phase AND I found out that WS strips out /r/n (an leave /n) ... I understand there are some XMl...
6
3775
by: azizrasul | last post by:
I have a text file with x number of lines. When opening the file, I have an extra blank line which I presume is a carriage return, How do I 1. ensure I don't have a blank line when I write to the file or 2. get rid of the extra line afterwards Here's the code I've used for the data write: - Private Sub Command0_Click()
8
19785
by: kcovert | last post by:
using System.Net.Mail; I've been unable to get a carriage return/line feed into the body of my Outlook message. Have look all over the web for a soltion with no luck. Here's what I have tried already, code is in a loop.., //body += "%0A" + txtMessage.Text.Substring(CurPos, 1); //body += "<CF><LF>" + " " +txtMessage.Text.Substring(CurPos, 1); //body += "'CRLF:\r\nPost CRLF'" + txtMessage.Text.Substring(CurPos, 1); //body += "<br>" +...
0
1787
by: Hayduke | last post by:
I've observed various posts here and elsewhere concerning CRLFs getting stripped out of programatically generated emails. This behavior is evident when the email is viewed using various versions of Microsoft Outlook. Outlook displays a message like "Extra line breaks in this message were removed". I've had the same problem for a long time, and found a solution quite by accident. Ensuring that each line ends with a period (.) prior to the...
0
8685
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8612
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9032
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
7743
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5869
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4373
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4625
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3053
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2008
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.