How to create a QR Code Version 14 (73x73modules)

Matthias Rebbe matthias_livecode_150811 at m-r-d.de
Wed Jul 18 02:13:19 CEST 2018


Monte,

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
to
 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. 

Matthias


> 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.
> 
> Cheers
> 
> Monte
> 
>> On 18 Jul 2018, at 8:20 am, Matthias Rebbe via use-livecode <use-livecode at lists.runrev.com> wrote:
>> 
>> Hi.
>> 
>> 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?
>> 
>> Regards,
>> 
>> Matthias
>> 
>> 
>> _______________________________________________
>> use-livecode mailing list
>> use-livecode at lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
> 
> 
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode




More information about the use-livecode mailing list