String.Replace error


I have this very simple code:

Dim cfgText As String = App.config cfgText.Replace("%cpu%", cStr((popupCPU.ListIndex + 1)*10)) cfgText.Replace("%workername%", txtWorkername.Text)

The error message is: There is more than one item with this name, pointing to cfgText
The error message is obviously completely wrong, renaming the string to something totally different gives the same error message.

It’s weird, when I do cfText. I cannot see “Replace” the property/extending methods list. What I’m I doing wrong here?
I have a feeling I’m doing something complete rookie wrong here!


Grin… you are missing the assignment: result = s.Replace(“fox”, “rabbit”)

Oh god, where is my mind. Thanks Beatrix!