dcostelloe Level: VB Guru
 Registered: 11-06-2002 Posts: 74
|
StringBuilder Part 1
How to Create a StringBuilder Object
Imports System.Text
Dim ObjString As StringBuilder = New StringBuilder()
' Add Some Text
ObjString.Append("Hello World AND ")
MessageBox.Show(ObjString.ToString)
'Ops we made a mistake lets delete the "AND"
objString.ToString.Trim()
objString.Remove(objString.Length - 4, 3)
MessageBox.Show(ObjString.ToString)
' Lets Clear the StringBuilder Object
objString.Remove(0,objString.Length)
Hope this Helps
David..........
[Edited by admin on 02-08-2002 at 01:14 PM GMT]
____________________________
Life is but a merry go round
around and around :-)
Visit us today:
http://www.welford-costelloe.com
|