Xojo Plugin
Xojo Plugin
StringBuilder ReplaceWord
Demonstrates the ReplaceWord method.Chilkat Xojo Plugin Downloads
Dim sb As New Chilkat.StringBuilder
Dim success As Boolean
success = sb.Append("forest, lumber, lumberjack, jack, timberland")
// The ReplaceWord method replaces word occurances.
// For example:
Dim numReplacements As Int32
numReplacements = sb.ReplaceWord("lumber","timber")
numReplacements = sb.ReplaceWord("jack","joe")
// The string content is now:
// forest, timber, lumberjack, joe, timberland
System.DebugLog(sb.GetAsString())