In this line it is need to set > 0; to >= 0; (or > -1;).
Reason:
GetAlphanumericCode give back for '0' the value 0 from ALPHANUMERIC_TABLE (defined Line 66).
If you want with actual sourcecode to encode a string like '00.00.00.00' the QR will only ecnode '...' (three dots without the zeros).
With bugfix it encodes correct '00.00.00.00'.
I found that because I tried to encode the IP 192.168.165.101 and the result string was every time 192.168.165.11 - missing the 0...
https://github.com/foxitsoftware/DelphiZXingQRCode/blob/7753eb6d4924b1d5cc97fcc179a85362db688995/Source/DelphiZXIngQRCode.pas#L1051
In this line it is need to set
> 0;
to>= 0;
(or> -1;
).Reason: GetAlphanumericCode give back for '0' the value 0 from ALPHANUMERIC_TABLE (defined Line 66).
If you want with actual sourcecode to encode a string like '00.00.00.00' the QR will only ecnode '...' (three dots without the zeros).
With bugfix it encodes correct '00.00.00.00'. I found that because I tried to encode the IP 192.168.165.101 and the result string was every time 192.168.165.11 - missing the 0...