Hello friends,
Today we made a program to create SVG QRCodes.
We recorded a video. The video is 1 hour and in raw format.
But you can see how we simplify development with HARBOURINO.
Please see starting from 3.12 min how we convert a HTML to mod Harbour.
--------------------------------------------------------------
Problem - we need to create SVG QR Codes from a DBF file.
Search the internet for a sample
Download the HTML sample
Adapt the HTML sample - I inserted a download function
The sample creates the QRCode and then the download function
function downloadString(text, fileType, fileName)
saves the SVG QR Code on the local PC
Convert the HTML sample to a mod Harbour program -
patch and test.
Insert DBF into the program
Directory INDEX2/source
Here are all the single files which Patcher sticks to a single prg file
But it is more clear to have a single file for functions and tasks
We copy our standard functions to this directory
We insert INIT PROCEDURE PrgInit into the projects main file HRB_INDEX2
Short test
LET us clean up the main file -
HEAD
GITHUB_DESCRIPTION
Let us look into our samples for dbf2Hash
As we do not have anything changed, we copy the whole part from the template to our program
Let us change the path and database name
now we insert our MH_ functions
I think the functions are for a Harbour programmer .self-explaining
We insert a little test to see if we get the values
Check the database for the field names
Create the SVG QRCodes.
We insert the codes into CorelDraw and check with a QRcode reader if all is ok.
https://mybergland.com/fwforum/qrcodessvg.mp4