Public Function FindPrinterPort(Port As String) As BooleanDemikian VB6 kode untuk mencari port tertentu dari seluruh printer port yang ada.
Dim P As Printer, Found As Boolean
For Each P In Printers
If Printer.Port = Port & ":" Then
Found = True
Exit For
End If
Next
FindPrinterPort = Found
End Function
Sunday, June 17, 2012
VB6 Code - Mencari seluruh Printer Port
Labels:
Printer