QR Code Error

Started by Jerry Fletcher, July 17, 2026, 10:15:24 AM

Previous topic - Next topic

Jerry Fletcher

Hello, I'm having one last issue with makeqrcode.  From time to time it gets a hard error at line 6 in the pxplus program. I tried adding an error branch to call of makeqrcode but it does not seem to be honoring it. I can't get into program to look at it or add an error branch because it is password protected.  has anyone ever had this issue..
here is what i'm doing

CALL "*tools/makeqrcode",err=*next,"www.somewebaddress.com", "output_file.png"

James Zukowski

What is the error being returned to your program?
James Zukowski
Sr. Developer - J&E

BRAND>SAFWAY
Brand Industrial Services

Jerry Fletcher

Sorry James. I should have included that. It is an Error 0. I'm sure there is a blip in the network connectivity where it cannot contact the service to get the QR Code. I just wish it would not generate a hard error that i cannot trap for

Loren Doornek

Check the value of the 'NE' system parameter using PRINT PRM('NE').  If that parameter is zero (off), any errors in the sub-program should be returned to the parent program.  But if the parameter is on (non-zero), then the error will be reported in the sub-program, and your ERR= branch won't be honored.

https://manual.pvxplus.com/PXPLUS/parameters/ne.htm


Jerry Fletcher

Hi Loren,
I'm pretty sure it is off because we have had problems in the past when you have this situation

Call Prog1
    Call Prog2
       Call Prog3
           Call Prog4

then Prog4 gets an error, the error goes back to Prog1 and you have no idea what was going on in Prog1 because all the variables are no longer in memory.
if i had my way it would be that pxplus does not error out but i'm going to have to set NE parameter before calling this program then turn it back on

thank you

Mike King

Set the 'NE' system parameter to have the error reported in the subprogram or implement an ERROR_HANDLER which will gain control immediately when the un-trapped error occurs.
Mike King
President - BBSysco Consulting - http://www.bbsysco.com
eMail: mike.king@bbsysco.com

Jerry Fletcher

Hi Mike,

that is what i ended up doing. thank you all.