Function aPrinters() is working when under application. Failled when ran from EXE on some PC and works well on others.
=APRINTERS(xPrinterList,0)
IF ASCAN(xPrinterList,"pdf995",1,0,1,1) = 0
mbkGestionSorties = .f.
bPDF995Present = .f.
ENDIF
On some PC system is crashing stating that xPrinterList does not exist. If I run into APP mode onto same PC, no problems. If I run EXE on another PC, it run fine.
Thanks