View Single Post
  #2  
Old 01-11-2012, 05:07 AM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
PHP Code:
Trade_MyGralats.text.length() -= 1;
Trade_MyGralats.text.size() -= 1
These make no sense, the return value of a function is not a variable.

PHP Code:
Trade_MyGralats.text -= 1
text is a string, not a number, so this isn't going to work either.

PHP Code:
Trade_MyGralats.text Trade_MyGralats.text.substring(0Trade_MyGralats.text.length() - 1); 
substring is the key. Probably you'd be better off just saving a copy of the old string (before letters were added) and then changing the text back to the old string if they enter a letter. Right now someone could just enter a letter anywhere but the end of the string and it wouldn't fix this.
__________________
Reply With Quote