public boolean validate()
{
boolean ret = true;
ret = super();
ret = (strlen(CustTable.CivilId)) == strlen(strkeep(CustTable.CivilId,’0123456789′));
if(ret == false)
{
ret = checkFailed(“Civil id should have numeric values only”);
}
return ret;
}
{
boolean ret = true;
ret = super();
ret = (strlen(CustTable.CivilId)) == strlen(strkeep(CustTable.CivilId,’0123456789′));
if(ret == false)
{
ret = checkFailed(“Civil id should have numeric values only”);
}
return ret;
}
No comments:
Post a Comment