String manipulation - Replace not working.

jspencer

Well-known member
Joined
Jan 30, 2003
Messages
81
Location
London, UK
Woe is me! Can anyone see why this seemingly benign replace call wont actually replace anything?

Code:
Dim sText As System.String = "Wordl"
sText.Replace("Wordl", "world") 
Console.WriteLine(sText)

Prints Wordl rather than the world that I expected.

Its bizarre!

Thanks for any help.

Justin
 
Back
Top