Psst.. new poll here.
Psst.. new forums here.
Microsoft is blocking us again (TY IP Reputation!) so just use oauth login instead. :)
Paste
Pasted as Java by Chris ( 15 years ago )
private boolean validateChange(StringBuffer newVal, int mode, int limit,
int scale) {
if(mode == NUMERIC || mode == INTEGER){
String n = newVal.toString();
if(n!=null && !n.isEmpty()){
if(n.startsWith("+") || n.startsWith("-")){
newVal = new StringBuffer(n.substring(1, n.length()-1));
}
}
}
Revise this Paste