can someone help me with a question?
i need to validate a number entry in a table...
i don't know hhow to write this function
function needs to validate
number needs to have 9 digits;
firt digit has to be 1, 2, 5, 6, 8, or 9
control sum given by 9xn1 +8xn2+ 7xn3+ 6xn4+ 5xn5 +4xn6 +3xn7 +2xn8 +n9 has to be multiple of 11 (sum%11=0).
n1 is the first digit, n9 is the last digit (check digit).
someone has a function that does this?
i need to validate a number entry in a table...
i don't know hhow to write this function
function needs to validate
number needs to have 9 digits;
firt digit has to be 1, 2, 5, 6, 8, or 9
control sum given by 9xn1 +8xn2+ 7xn3+ 6xn4+ 5xn5 +4xn6 +3xn7 +2xn8 +n9 has to be multiple of 11 (sum%11=0).
n1 is the first digit, n9 is the last digit (check digit).
someone has a function that does this?