How to Clear StringBuilder

How to clear StringBuilder data;

Dim StrB as new StringBuilder

1. Way to clear is to set the Length to 0

  1.  StrB.Lenght = 0

2. Or reassign it

  1.  
  2. StrB = new StringBuilder   

, ,

  1. No comments yet.
(will not be published)
Submit Comment

*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Click to hear an audio file of the anti-spam word

Subscribe to comments feed
  1. No trackbacks yet.

SetPageWidth