Skip to Content
0
Former Member
Feb 03, 2010 at 05:16 AM

Simple Numeric validation logic required !

55 Views

Hi All ,

Need quick and simple logic for numeric validation.

I have to check the field areacode contains values between 0-9 only and it receives only 3digits.Please tell me how to write this logic.

String Area = wdContext.currentSelectedInfotypeElement().getAreac();

if (fpm.getEventData().getEventName().equals(IFPM.EVENT_BACK))

{

Area.matches("0-9");

if(Area.equals("345"))

{

return true;

}

}