Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

stringbuilders 1

Status
Not open for further replies.

sthmpsn1

MIS
Sep 26, 2001
456
US
How do you detirmine if a string builder is empty???
 
if stringbuilder.tostring = "" then
end if That'l do donkey, that'l do
[bravo] Mark
 
Just FYI, you can use the constant expression:

string.empty

to denote the same thing (""). I like it for its readability.

:)
paul
penny1.gif
penny1.gif
 
Why not
If sb.Length = 0
It does not waste time bulding a string that just waits around to be garbage collected. The whole point of StringBuilder is to avoid intermediate strings. Forms/Controls Resizing/Tabbing Control
Compare Code (Text)
Generate Sort Class in VB or VBScript
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top