Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > How to reset a StringBuilder?

Reply
Thread Tools

How to reset a StringBuilder?

 
 
ESPN Lover
Guest
Posts: n/a
 
      10-13-2004
I've got stuff in my StringBuilder (System.Text) and I need to clear it all
out. How do I do that?


 
Reply With Quote
 
 
 
 
Greg Burns
Guest
Posts: n/a
 
      10-13-2004
Dim sb as new system.text.stringbuilder
sb.append("foo")
sb = new system.text.stringbuilder
sb.append("bar")

? sb.tostring
bar

There is also the Remove method.

HTH,
Greg


"ESPN Lover" <(E-Mail Removed)> wrote in message
news:eVoF$(E-Mail Removed)...
> I've got stuff in my StringBuilder (System.Text) and I need to clear it
> all
> out. How do I do that?
>
>



 
Reply With Quote
 
 
 
 
ESPN Lover
Guest
Posts: n/a
 
      10-14-2004
Thanks!

"Greg Burns" <greg_burns@DONT_SPAM_ME_hotmail.com> wrote in message
news:(E-Mail Removed)...
> Dim sb as new system.text.stringbuilder
> sb.append("foo")
> sb = new system.text.stringbuilder
> sb.append("bar")
>
> ? sb.tostring
> bar
>
> There is also the Remove method.



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
You will not be able to reset the access - can't reset. jc MCAD 0 12-09-2007 08:58 PM
CISCO 7XX / 761 password reset or reset to factory defaults Philipp Flesch Cisco 3 06-18-2006 07:47 PM
Reset network creation counter J.H. Holliday Wireless Networking 4 06-11-2005 08:09 PM
Connection Reset =?Utf-8?B?RGljb3Jwbw==?= Wireless Networking 0 10-08-2004 03:35 PM
Wireless Linksys Router Reset--What happened? =?Utf-8?B?TW9yZGlkbw==?= Wireless Networking 1 10-08-2004 11:28 AM



Advertisments