|
|
#1 |
|
Solid State Member
Join Date: Oct 2011
Posts: 17
|
hello
i have a text box and it has a text "1000" and i also have a textbox 2 and i want the 1000 to be deminished whenever i typed in textbox 2 so that i can see how many characters i have typed in textbox 2 please help me! |
|
|
|
|
|
#2 |
|
Site Team
Join Date: May 2010
Location: United States
Posts: 2,335
|
What language is this being programmed in?
__________________
No rain - no raindbows |
|
|
|
|
|
#3 |
|
Site Team
Join Date: Jul 2009
Posts: 2,627
|
Obviously as above this hugely depends on the language, but you can usually get the text in the textbox as a string and subsequently find out the length of the text.
So in Java for instance it'd be something like: Code:
int remaining = 1000-textBox.getText().length(); countTextBox.setText(Integer.toString(remaining));
__________________
Save the whales, feed the hungry, free the mallocs. |
|
|
|
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|