[Migrated content. Thread originally posted on 01 February 2008]
Hello,I'm getting a memory access violation error when trying to get the number of printers installed in my system.
call "WIN$PRINTER" using WINPRINT-GET-NO-PRINTERS
WINPRINT-SELECTION
end-call.
cancel "WIN$PRINTER".
move WINPRINT-NO-OF-PRINTERS to printer-count.
The fact is no printers are installed but i think i must get a zero in printer count instead of an error.
Any ideas?
Thanks afterwards



