-
July 1st, 2014, 10:26 PM
#1
Replace Text with textBox
Hello,
I'm trying to replace text within a textBox . I have it working with one set, if I uncomment two if these lines, it does not work.
I have been trying to figure out how to append it, then I think it might work for me.
textBox6.Text = textBox3.Text.Replace("A", "1");
//textBox6.Text = textBox3.Text.Replace("a", "1");
//textBox6.Text = textBox3.Text.Replace("B", "2");
//textBox6.Text = textBox3.Text.Replace("b", "2");
//textBox6.Text = textBox3.Text.Replace("C", "3");
//textBox6.Text = textBox3.Text.Replace("c", "3");
So, if I have a text value of Apple, it would be 1pple, this works, but if I uncomment line with the B, it will not work. If say the word was BAT, it would be 2120, because T = 20
What can I do to make this work.
Thanks,
Mike
Last edited by netman06; July 1st, 2014 at 11:33 PM.
Reason: Resolved
-
July 1st, 2014, 11:32 PM
#2
Re: Replace Text with textBox
-
July 6th, 2014, 02:42 PM
#3
Re: Replace Text with textBox
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
|