Advertisement
Guest User

Untitled

a guest
Mar 26th, 2019
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. Func checkBSN(number)
  2. If len(number) <> 9 Then
  3. checkBSN = False
  4. Else
  5. Dim total as Integer
  6. Integer = 0
  7. For i = 1 to 8
  8. total = total + int(mid(number,i,1))*(10-i)
  9. Next i
  10. Total = total + -1*int(mid(number,9,1))
  11. If Total mod 11 = 0 Then
  12. checkBSN = True
  13. Else
  14. checkBSN = False
  15. End if
  16. End if
  17. End Func
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement