How to create a QR Code Version 14 (73x73modules)
matthias_livecode_150811 at m-r-d.de
Wed Jul 18 02:13:19 CEST 2018
you are my hero. :)
I´ve changed line 1486 to
command qrCreate pImg, pData, pECC, pSize, pMask, pMinVersion, pMaxVersion
and changed the line 1525 from
repeat with tVersion = 1 to 40
if pMinVersion is empty then put 1 into pMinVersion
if pMaxVersion is empty then put 40 into pMaxVersion
repeat with tVersion = pMinVersion to pMaxVersion
It´s working! ! !
I will open an enhancement report tomorrow afternoon and will add my patch after i´ve added some additional code for error handling in case pMinVersion is greater than pMaxVersion or if pMaxVersion >40 and so on.
Thank you very much.
> Am 18.07.2018 um 01:29 schrieb Monte Goulding via use-livecode <use-livecode at lists.runrev.com>:
> Hi Matthias
> This looks like a relatively easy patch to make. Probably adding min version and max version optional parameters which default to 1 and 40 then using those in the loop to find the min version at line 1525 of the script. Then you just use 14,14 for the parameters.
> It would be great if you would open an enhancement report and if so inclined contribute the patch in case others hit the same requirement.
>> On 18 Jul 2018, at 8:20 am, Matthias Rebbe via use-livecode <use-livecode at lists.runrev.com> wrote:
>> My app needs to create qr codes. This is not a problem so far, as Splash21´s qrCode library is now included in Livecode.
>> My problem is that i need to create qr Codes with exact version 14, which has a matrix size of 73 x 73. The customer needs exact that kind of code. The codes are scanned by a parcel service and the tech papers of the parcel service note exact those requirements.
>> As the qrCode library in LC automatically decides according to the number and types of the characters, what version is used for creation, i am not sure if this is even possible. But is there a way to create just version 14 codes regardless of the number of character? Maybe with a modified library?
>> use-livecode mailing list
>> use-livecode at lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
More information about the use-livecode