Regarding the issue that was being discussed here:
https://vborg.vbsupport.ru/showthread.php?t=315024 : HM666, you could try adding this line before the "while" that's a few lines before 1242:
but as I mentioned in the other thread, that won't really be right bcause it won't have any values. I think it may be that your button needs to submit a form with some hidden data. Although it could also be a bug that was never noticed before because warnings were suppressed.
I see that you posted in the Paid Services forum, that may be the best idea after all.