Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Artful Two for Clipper 5.0 - Norton Guide http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]

Syntax

MOD_10( ncNum, nLen )

Purpose

Perform a mod 10 check on an integer of any length.

Arguments

     ncNum -- string of digits or numeric

     nLen -- optional length, or defaults to length of _num

Setup

Valid parameters are assumed.

Example

     bool = MOD_10( "12345674", 8 )

Returns

.T. if check is successful, else .F.

Side Effects

Crash on bad data.

Artful Calls

IS_EVEN, STRINT, MOD

Source File

AA_MOD10.PRG

Notes

Mod 10 checks are employed in various applications where numeric codes are
validated authentic. Curiously, credit card validation is not one of them.

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson