String manipulation - Replace not working.

jspencer

Regular
Joined
Jan 30, 2003
Messages
81
Location
London, UK
Woe is me! Can anyone see why this seemingly benign replace call won't 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.

It's bizarre!

Thanks for any help.

Justin
 
Back
Top