|
-
May 24th, 2009, 12:54 AM
#1
Thread Starter
Hyperactive Member
[RESOLVED] replace text
say textbox1.text =
1
4
1
6
how can i replace all the "1" with anything i want like say i want to make ever "1" in textbox1.text a 2 so i would need textbox1.text to look like this when i press button1
2
4
2
6
-
May 24th, 2009, 01:12 AM
#2
Re: replace text
Use this:
vb Code:
Me.TextBox1.Text = Me.TextBox1.Text.Replace("1","2")
-
May 24th, 2009, 03:13 AM
#3
Thread Starter
Hyperactive Member
-
May 24th, 2009, 04:43 PM
#4
Re: replace text
If your question is answered, please mark the thread [RESOLVED].
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|