You are looking for an implementation of the "luhn" checksum. You should definately find some delphi or c code online. Search google groups. A long time ago I implemented one but I doubt I could find it now! Visa's can also start with another sequence but I can't recall it now...
happy searching. JED This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the [EMAIL PROTECTED] --------------------------------------------------------------------------- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz To UnSub, send email to: [EMAIL PROTECTED] with body of "unsubscribe delphi" Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/