This prompts a new question.Artificer wrote: Wed Apr 09, 2025 10:20 pm Hi Martin,
Although your patch program did not work, here is something that indicates that FOR loop variables are at least part of the incompatibility of QLib with copyback. I have a small program to copy the screen to a pic file. The program does not copy the screen correctly when compiled and with copyback enabled. It uses a FOR loop to step through the screen addresses. After changing the FOR loop to a REPeat loop the program now works correctly when compiled with QLib and Copyback enabled.
Attached is a zip file with the original sbasic program and screen shots showing the different outputs.
ScrdumpA_pic is with the REPeat loop and compiled plus copyback
ScrdumpB_pic is with the FOR loop and compiled plus copyback
ScrdumpV is with the FOR loop but executed as SBASIC plus copyback.QLibTest.zip
As SMSQe allows for INTs in FOR loops I use that as much as possible. But I always use INT var names and don't rely on QLib to do it for me, as sometimes the FOR needs to be a Long/Float.
Does that make any difference in copyback behaviour?
BSR