The SDL Component Suite is an industry leading collection of components supporting scientific and engineering computing. Please visit the SDL Web site for more information....


Declaration:function CheckCASNr (CASNum: longint): boolean;

The routine CheckCASNr checks a given CAS registry number for correctness by calculating the check digit and comparing the result with the given check digit. The function returns TRUE if the CAS registry number is correct.

Hint: The CAS registry number should be passed to CheckCASNr as a 32-bit integer, which is derived from the registry number by just omitting the two hyphens. The user should be aware that the middle part of the CAS registry number always has two digits, even if this part is zero. For a comprehensive explanation of the CAS registry number syntax, see the number section of the CAS registry handbook.

Last Update: 2012-Okt-20