Tuesday, 22 January 2019

allow numeric values only in string field x++

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;
}

No comments:

Post a Comment