baanjim
16th April 2019, 18:01
Hi,
I try to create a QR code and print it on BW Print.
My QR code contains 3 variables: cwar, item, qty. separated by a TAB character.
the code is:
qrcode = cwar & chr$(0x09) & item & chr$(0x09) & str$ (qrcr)
qrcode = bc$ (1010, 4, qrcode , BC2D_SET_MODE (0x01) + BC2D_SET_LEVEL (0x01) + BC2D_SET_COLUMNS (0x00))
The result is, in BW Print, that the QR code doesn't appear!
If I take off the Tab caracters, It works!
I also tried to generate a simple barcode 10 and in this case it works!
Thx for any help.
Regards.

bdittmar
16th April 2019, 18:50
Hi,
I try to create a QR code and print it on BW Print.
My QR code contains 3 variables: cwar, item, qty. separated by a TAB character.
the code is:
qrcode = cwar & chr$(0x09) & item & chr$(0x09) & str$ (qrcr)
qrcode = bc$ (1010, 4, qrcode , BC2D_SET_MODE (0x01) + BC2D_SET_LEVEL (0x01) + BC2D_SET_COLUMNS (0x00))
The result is, in BW Print, that the QR code doesn't appear!
If I take off the Tab caracters, It works!
I also tried to generate a simple barcode 10 and in this case it works!
Thx for any help.
Regards.

Hello,

Try to use chr$(09) instead of chr$(0x09)

chr$()
Syntax:

function string chr$ (long code)

Description


This function returns a single character string corresponding to the supplied code point.
Arguments
long code
Context
This function can be used in all script types.
Note
If code is greater than 255, the returned string is of type multibyte and the supplied code point is encoded into a four-byte sequence. No check is made on the legality of the value.
Example

chr$(65) | Returns "A"
chr$(asc("A")) | Returns "A"
chr$(27) | Returns the escape character



Regards