Hello all, this is my small tutorial on how to use .Replace and .Insert in VB.net.
.Replace
What .Replace does is it will replace whatever text you have chosen with the text you choose, lets look at an example code.
Spoiler (Click to View)
.Insert
.Insert is really useful. What it does is, goes to the indexed number in the text/string that you told it to, and then inserts some text/string there. Let me give you an example. My string = "Hello1234", in Hello1234 I want to insert "World" after "Hello". So I figure out the index number in which the word Hello ends.. to do this we count (INCLUDE 0)... H=0 e=1 l=2 l=3 o=4 1=5, so our index number is 5 (the number we want our word to start), and we want to insert the word "World" so we write "World". See the example below:
Spoiler (Click to View)
I hope this taught you all a little bit and this is mostly for the noobs out there. Thanks for reading 👍
.Replace
What .Replace does is it will replace whatever text you have chosen with the text you choose, lets look at an example code.
Spoiler (Click to View)
.Insert
.Insert is really useful. What it does is, goes to the indexed number in the text/string that you told it to, and then inserts some text/string there. Let me give you an example. My string = "Hello1234", in Hello1234 I want to insert "World" after "Hello". So I figure out the index number in which the word Hello ends.. to do this we count (INCLUDE 0)... H=0 e=1 l=2 l=3 o=4 1=5, so our index number is 5 (the number we want our word to start), and we want to insert the word "World" so we write "World". See the example below:
Spoiler (Click to View)
I hope this taught you all a little bit and this is mostly for the noobs out there. Thanks for reading 👍


![[Image: tqE7M8d.png]](https://i.imgur.com/tqE7M8d.png)