Calculate Mod 10 Check Digit

Category:
Dates and Math
Type:
Snippets
Difficulty:
Beginning
Author:
Brian McHugh

Version Compatibility:

More information:
If you've ever worked with UPC numbers from bar codes, you can use this code to obtain the check digit that is usually added to the end of them for the purposes of determining their validity in checksum routines.

Instructions: Copy the declarations and code below and paste directly into your VB project.

Declarations:

Code: