Option ExplicitContoh penggunaan kode di atas
Function DefPrintName() As String
DefPrintName = Printer.DeviceName
End Function
Private Sub Command1_Click()
MsgBox DefPrintName, vbInformation, "Default Printer"
End Sub
Sebuah catatan pribadi mengenai bahasa arab, syair arab klasik, Visual Basic 6.0, dan Blogging.
Option ExplicitContoh penggunaan kode di atas
Function DefPrintName() As String
DefPrintName = Printer.DeviceName
End Function
Private Sub Command1_Click()
MsgBox DefPrintName, vbInformation, "Default Printer"
End Sub