Click here to Skip to main content
15,889,281 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Save a multiline text on sql server Pin
Wendelius29-Jul-15 22:03
mentorWendelius29-Jul-15 22:03 
GeneralRe: Save a multiline text on sql server Pin
Wendelius29-Jul-15 22:04
mentorWendelius29-Jul-15 22:04 
GeneralRe: Save a multiline text on sql server Pin
satc29-Jul-15 23:02
satc29-Jul-15 23:02 
GeneralRe: Save a multiline text on sql server Pin
Wendelius29-Jul-15 23:33
mentorWendelius29-Jul-15 23:33 
GeneralRe: Save a multiline text on sql server Pin
satc29-Jul-15 23:40
satc29-Jul-15 23:40 
GeneralRe: Save a multiline text on sql server Pin
Wendelius30-Jul-15 0:56
mentorWendelius30-Jul-15 0:56 
GeneralRe: Save a multiline text on sql server Pin
satc30-Jul-15 1:08
satc30-Jul-15 1:08 
GeneralRe: Save a multiline text on sql server Pin
Wendelius30-Jul-15 2:58
mentorWendelius30-Jul-15 2:58 
You still haven't verified was the output the same with the test program that I posted...

So I take it you got the exact same output. In that case you can clearly see that when you put character codes 13 and 10 twice, you get two newlines. If you put them only once meaning instead of this
VB
context.TestDataRTF.Find(1).textvalue = "This is line 1." + Chr(13) + Chr(10) + Chr(13) + Chr(10) + "This is line 2."
you code like this
VB
context.TestDataRTF.Find(1).textvalue = "This is line 1." + Chr(13) + Chr(10) + "This is line 2."

You get only one newline like this
This is line 1.
This is line 2.

instead of the previous
This is line 1.

This is line 2.

So as far as I can see everything is working correct.

If the behaviour you experience with the test program I wrote is different, please provide all information concerning the code and the behaviour.

Then again if the test program works as expected, then your original program has some kind of flaw which is affecting the output. Also in such case, a lot more info would be needed.
GeneralRe: Save a multiline text on sql server Pin
satc30-Jul-15 4:06
satc30-Jul-15 4:06 
GeneralRe: Save a multiline text on sql server Pin
Wendelius30-Jul-15 4:47
mentorWendelius30-Jul-15 4:47 
GeneralRe: Save a multiline text on sql server Pin
Eddy Vluggen30-Jul-15 1:24
professionalEddy Vluggen30-Jul-15 1:24 
GeneralRe: Save a multiline text on sql server Pin
satc30-Jul-15 1:27
satc30-Jul-15 1:27 
GeneralRe: Save a multiline text on sql server Pin
Eddy Vluggen30-Jul-15 1:35
professionalEddy Vluggen30-Jul-15 1:35 
GeneralRe: Save a multiline text on sql server Pin
satc30-Jul-15 1:45
satc30-Jul-15 1:45 
GeneralRe: Save a multiline text on sql server Pin
Eddy Vluggen30-Jul-15 2:09
professionalEddy Vluggen30-Jul-15 2:09 
GeneralRe: Save a multiline text on sql server Pin
satc30-Jul-15 2:34
satc30-Jul-15 2:34 
GeneralRe: Save a multiline text on sql server Pin
Eddy Vluggen30-Jul-15 2:46
professionalEddy Vluggen30-Jul-15 2:46 
GeneralRe: Save a multiline text on sql server Pin
satc30-Jul-15 2:55
satc30-Jul-15 2:55 
GeneralRe: Save a multiline text on sql server Pin
Wendelius29-Jul-15 2:00
mentorWendelius29-Jul-15 2:00 
AnswerRe: Save a multiline text on sql server Pin
Mycroft Holmes29-Jul-15 14:40
professionalMycroft Holmes29-Jul-15 14:40 
Questionprogress bar, percent complete Pin
jkirkerx28-Jul-15 10:16
professionaljkirkerx28-Jul-15 10:16 
AnswerRe: progress bar, percent complete Pin
Eddy Vluggen28-Jul-15 11:42
professionalEddy Vluggen28-Jul-15 11:42 
AnswerRe: progress bar, percent complete Pin
Ross Pickard28-Jul-15 12:04
Ross Pickard28-Jul-15 12:04 
AnswerRe: progress bar, percent complete Pin
jkirkerx30-Jul-15 13:27
professionaljkirkerx30-Jul-15 13:27 
QuestionListOf, check for existing value first Pin
jkirkerx28-Jul-15 9:31
professionaljkirkerx28-Jul-15 9:31 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.