Contents - Index - Previous - Next


CheckBarCode method

See also Example

Applies to
TCustomEan component

Declaration
function
CheckBarCode(S: String): Boolean;

Description

Check bar code accuracy in variable S, bar code type is in TypeBarcode property. It will compare if all characters are from actual character package, also check the total sum. It resumes True if a code is all right. If it is incorrect, it resumes False and sets LastPaintError.  Exact error description you can get then by function LastPaintErrorText calling.