![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
|
|
#1 |
|
Hobbyist Programmer
Join Date: Sep 2005
Location: A House...
Posts: 191
Rep Power: 4
![]() |
Remove prevoius letter in textbox
How could this be done. so lets say on a click or somewhere in an event the last letter in the box would be removed. So if at first it looked like this
abcde after the event it would look like this abcd I looked at String.Remove... but i neede help. thanks -T |
|
|
|
|
|
#2 |
|
I eat cake for breakfast.
![]() ![]() ![]() ![]() Join Date: Jul 2004
Location: In my box.
Posts: 4,434
Rep Power: 9
![]() |
Well, you want a Substring of the Text... think about it. You're looking at it the wrong way.
|
|
|
|
|
|
#3 |
|
Hobbyist Programmer
Join Date: Sep 2005
Location: A House...
Posts: 191
Rep Power: 4
![]() |
oO yes
My bad. I think i take it from here. thanks fo the push in the right direction |
|
|
|
|
|
#4 |
|
Hobbyist Programmer
Join Date: Sep 2005
Location: A House...
Posts: 191
Rep Power: 4
![]() |
Well....i lied lol. im not sure where to go. any help?
|
|
|
|
|
|
#5 |
|
Troll
Join Date: Apr 2005
Location: Texas
Posts: 732
Rep Power: 4
![]() |
String.Remove
Snip off one character starting at the last index. Note that it returns a new string;the existing one is not changed. Assign the result of <textbox>.Text.Remove to <textbox>.Text for that very reason.
__________________
MD5(sig) = bcef75433db02e9ad9bf81d6f7c5c270 |
|
|
|
|
|
#6 | |
|
Hobbyist Programmer
Join Date: Sep 2005
Location: A House...
Posts: 191
Rep Power: 4
![]() |
Quote:
-T |
|
|
|
|
|
|
#7 |
|
I eat cake for breakfast.
![]() ![]() ![]() ![]() Join Date: Jul 2004
Location: In my box.
Posts: 4,434
Rep Power: 9
![]() |
Welp, I'm an idiot.
![]() |
|
|
|
|
|
#8 |
|
Hobbyist Programmer
Join Date: Sep 2005
Location: A House...
Posts: 191
Rep Power: 4
![]() |
I thought it might be remove |
|
|
|
|
|
#9 |
|
Programmer
|
I'm sure a substring could be used as well. You would do it from 0 to string.length - 1 I guess.
JD |
|
|
|
|
|
#10 |
|
Hobbyist Programmer
Join Date: Sep 2005
Location: A House...
Posts: 191
Rep Power: 4
![]() |
Hey, JD would you mind whowing me an example of this?
|
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|