473,327 Members | 2,012 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,327 software developers and data experts.

String Builder - not appended

Hi

I am using a variable of StringBuilder to form a string.

After appending a string of value like this

{\rtf1\ansi\ansicpg1252\deff0\deflang1033{\fonttbl {\f0\fnil\fcharset0
Verdana;}}
\viewkind4\uc1\pard\f0\fs17 saesae \b esrdsr esrdsr\i refetwe\b0\i0\par
}

This value is appended to that string builder.

Whatever appended after this value, not getting appended to the
StringBuilder.

How to solve this problem?

Thanks and Regards

Karuppasamy Natarajan


Jul 21 '05 #1
2 2107
Hello,

"Karuppasamy" <Ka*******************@isoftplc.com> schrieb:
I am using a variable of StringBuilder to form a string.

After appending a string of value like this

{\rtf1\ansi\ansicpg1252\deff0\deflang1033{\fonttbl {\f0\fnil\fcharset0
Verdana;}}
\viewkind4\uc1\pard\f0\fs17 saesae \b esrdsr esrdsr\i refetwe\b0\i0\par }

This value is appended to that string builder.

Whatever appended after this value, not getting appended to the
StringBuilder.


Please post some code. Do not x-post your questions to as many ngs.

--
Herfried K. Wagner
MVP · VB Classic, VB .NET
http://www.mvps.org/dotnet
Jul 21 '05 #2
It's impossible to tell from your post but I'm guessing that you are using
RTF here and are probably forgetting a \ or other character somewhere. So
it may in fact be appending, but if you try to view it anywhere, it won't
show b/c it's not in proper RTF format.

How are you determining that it's not appending? By looking at
StringBuilder.ToString() or by taking the appended value and setting a RTF
control's rtf property to it?
"Karuppasamy" <Ka*******************@isoftplc.com> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...
Hi

I am using a variable of StringBuilder to form a string.

After appending a string of value like this

{\rtf1\ansi\ansicpg1252\deff0\deflang1033{\fonttbl {\f0\fnil\fcharset0
Verdana;}}
\viewkind4\uc1\pard\f0\fs17 saesae \b esrdsr esrdsr\i refetwe\b0\i0\par
}

This value is appended to that string builder.

Whatever appended after this value, not getting appended to the
StringBuilder.

How to solve this problem?

Thanks and Regards

Karuppasamy Natarajan

Jul 21 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

37
by: Kevin C | last post by:
Quick Question: StringBuilder is obviously more efficient dealing with string concatenations than the old '+=' method... however, in dealing with relatively large string concatenations (ie,...
11
by: Martin Robins | last post by:
I am trying to parse a string that is similar in form to an OLEDB connection string using regular expressions; in principle it is working, but certain character combinations in the string being...
2
by: José Joye | last post by:
Hello, I was wondering if there is a method that exists to replace multi-spaces within a string with single-space. eg: "12 3 4 56" --> "12 3 4 56" I think this could be done by...
12
by: Tee | last post by:
String Builder & String, what's the difference. and when to use which ? Thanks.
2
by: Karuppasamy | last post by:
Hi I am using a variable of StringBuilder to form a string. After appending a string of value like this {\rtf1\ansi\ansicpg1252\deff0\deflang1033{\fonttbl{\f0\fnil\fcharset0 Verdana;}}
11
by: TheRain | last post by:
Hi, I am trying to append a carriage return to my string using the string builder class, but when I do this the string ends up containing "13". I tried this multiple ways like so ...
4
by: James Page | last post by:
Hi all I have a shopping cart object which I'd like to send the contents via an e-mail. I get an error saying 'hybridDictionary' cannot be converted to string. Does anyone know how to do...
26
by: Hardy Wang | last post by:
Hi all, I know it is better to handle large string with a StringBuilder, but how does StringBuilder class improve the performance in the background? Thanks! -- WWW:...
13
by: xzzy | last post by:
None of the following properly do the VB.net double quote conversion because all of the following in csharp convert to \" instead of just a double quote: " I have tried: char...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.