jspencer Posted May 23, 2003 Posted May 23, 2003 Woe is me! Can anyone see why this seemingly benign replace call won't actually replace anything? 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 Quote
Administrators PlausiblyDamp Posted May 23, 2003 Administrators Posted May 23, 2003 Dim sText As System.String = "Wordl" sText = sText.Replace("Wordl", "world") 'This line changed Console.WriteLine(sText) Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
jspencer Posted May 23, 2003 Author Posted May 23, 2003 Thanks m8. I just twigged to that one. I've been looking at this screen for too long... Aarrrrhhhhhh!!!!! Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.