How to check if a specific device was connected?
I need to check if a specific USB Printer was connected.
function isPrinterModel( cModel )
local aPrinters:= getPrinters(), i:=0, lSuccess:=.f.
for i = 1 to len( aPrinters )
if aPrinters[i] = cModel
lSuccess:=.t.
endif
next
return lSuccess
Return to FiveWin for Harbour/xHarbour
Users browsing this forum: No registered users and 40 guests