Fehler/Absturz abgefangen:
function composite:
Code:
case symbol.symbology of
{ Determine width of 2D component according to ISO/IEC 24723 Table 1 }
BARCODE_EANX_CC:
begin
case pri_len of
7, { EAN-8 }
10, { EAN-8 + 2 }
13: { EAN-8 + 5 }
cc_width := 3;
12, { EAN-13 }
15, { EAN-13 + 2 }
18: { EAN-13 + 5 }
cc_width := 4;
else //Neu
begin //Neu
concat(symbol.errtxt, 'Input wrong length in linear component'); //Neu
result := ZERROR_INVALID_DATA; exit; //Neu
end; //Neu
end;
end;