Textbox replace code - tutorial :D
Use this board to post your code snippets - tips and tricks
7 posts
Page 1 of 1
Hello everyone,
I am here to show and tell everyone a simple little code
, this will help with replacing text with. So to start it off, add a form, a button, and a textbox. ![Smile :)](./images/smilies/icon_e_smile.gif)
Next, the coding
, let me tell you its very long, haha. jk
ok well the part that is highlight red
" TextBox1.Text = Replace(TextBox1.Text, "TEXT HERE", "") "
Thats where you have to put that text that is in the textbox that you want to replace
Where it is highlighted yellow, thats the text it will be replaced with![Very Happy :D](./images/smilies/icon_e_biggrin.gif)
" TextBox1.Text = Replace(TextBox1.Text, "TEXT HERE", "I will replace Text
") "
This is a very easy code, and very useful
, any question, post on here , or pm me. cooll;
I am here to show and tell everyone a simple little code
![Very Happy :D](./images/smilies/icon_e_biggrin.gif)
![Smile :)](./images/smilies/icon_e_smile.gif)
Next, the coding
![Very Happy :D](./images/smilies/icon_e_biggrin.gif)
![Very Happy :D](./images/smilies/icon_e_biggrin.gif)
Code: Select all
this code should go on the button, now i will explain what to do and where you should put certain text.TextBox1.Text = Replace(TextBox1.Text, "Haha", " ")
ok well the part that is highlight red
" TextBox1.Text = Replace(TextBox1.Text, "TEXT HERE", "") "
Thats where you have to put that text that is in the textbox that you want to replace
Where it is highlighted yellow, thats the text it will be replaced with
![Very Happy :D](./images/smilies/icon_e_biggrin.gif)
" TextBox1.Text = Replace(TextBox1.Text, "TEXT HERE", "I will replace Text
![Very Happy :D](./images/smilies/icon_e_biggrin.gif)
This is a very easy code, and very useful
![Very Happy :D](./images/smilies/icon_e_biggrin.gif)
thanks for this!
so this replace the text that is selected?
so this replace the text that is selected?
Nailing my feet to the floor is easier than using my own muscles to balance, but you don't see me doing that ![Smile :)](./images/smilies/icon_e_smile.gif)
![Smile :)](./images/smilies/icon_e_smile.gif)
no, this will replace what you put in the
" TextBox1.Text = Replace(TextBox1.Text, "TEXT HERE", "") "
where it says text here
" TextBox1.Text = Replace(TextBox1.Text, "TEXT HERE", "") "
where it says text here
thats what i mean
Nailing my feet to the floor is easier than using my own muscles to balance, but you don't see me doing that ![Smile :)](./images/smilies/icon_e_smile.gif)
![Smile :)](./images/smilies/icon_e_smile.gif)
zachman61 wrote:thats what i meanopps, ok lol sorry
yea this is very helpful
Thanked
Thanked
Nailing my feet to the floor is easier than using my own muscles to balance, but you don't see me doing that ![Smile :)](./images/smilies/icon_e_smile.gif)
![Smile :)](./images/smilies/icon_e_smile.gif)
7 posts
Page 1 of 1
Copyright Information
Copyright © Codenstuff.com 2020 - 2023