PxPlus User Forum

Main Board => Discussions => Language => Topic started by: Jerry Fletcher on July 17, 2026, 10:15:24 AM

Title: QR Code Error
Post by: Jerry Fletcher on July 17, 2026, 10:15:24 AM
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"
Title: Re: QR Code Error
Post by: James Zukowski on July 17, 2026, 01:47:18 PM
What is the error being returned to your program?
Title: Re: QR Code Error
Post by: Jerry Fletcher on July 17, 2026, 02:57:25 PM
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
Title: Re: QR Code Error
Post by: Loren Doornek on July 17, 2026, 03:55:56 PM
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

Title: Re: QR Code Error
Post by: Jerry Fletcher on July 20, 2026, 05:36:54 PM
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
Title: Re: QR Code Error
Post by: Mike King on July 20, 2026, 07:03:42 PM
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.
Title: Re: QR Code Error
Post by: Jerry Fletcher on July 21, 2026, 07:55:16 AM
Hi Mike,

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