Wednesday 21 February 2018

get numerical from the string


Get numerical from the string

gstStr  = subStr(this.RegistrationNumber,1,2);

    if(strlen(gstStr) != strlen(strkeep(gstStr,'1234567890')))
    {
        ret = checkFailed("First two digists should be numericals");
    }

No comments:

Post a Comment