Hi Aeveus
welcome to the forum of QB64!
I can see that you like make SubProgram by GOSUB: RETURN... so you mustn't pass variables as parameters.
It seems to me that you have missed to type the closing statement for GOSUB at line 34
for the subprogram started by label PrintDetail:
try if now also on your pc all run ok!