This may be too late to help, but try the following (I'm assuming your variable is a string).
Dim thisstring As String = "2,6"
MsgBox("thisSTring was initialized to " & thisstring)
thisstring = Replace(thisstring, ",", ".")
MsgBox("thisSTring is now...