How does the string replace function in VB.net not work?

后端 未结 6 524
生来不讨喜
生来不讨喜 2020-12-11 05:06

I wrote up some code. The code is shown below. The first part is to read a html into string format. The second part is to search a mark in the string and replace the string

6条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-11 05:30

    You have to assign the value to something, like :

    TempText = TempText.Replace("the_key_string", "replace_by_this_string")
    

提交回复
热议问题