Hey ho,
ich hab immer mal wieder sachen die recht gleich sind und frage mich gerade ob man sowas nicht besser lösen könnte.
Hier ein Beispiel
Wäre für jeden Tipp dankbar
ich hab immer mal wieder sachen die recht gleich sind und frage mich gerade ob man sowas nicht besser lösen könnte.
Hier ein Beispiel
VB.NET-Quellcode
- Private Function Registriernummer() As Boolean
- HRAS = "R"c
- Label1.Text = "Registriernummer"
- Me.Visible = True
- While Me.Visible = True
- My.Application.DoEvents()
- End While
- If Form1.ComboBox12.Text <> "" Then
- Return True
- End If
- Return False
- End Function
- Private Function Hersteller() As Boolean
- HRAS = "H"c
- Label1.Text = "Hersteller"
- Me.Visible = True
- While Me.Visible = True
- My.Application.DoEvents()
- End While
- If Form1.ComboBox13.Text <> "" Then
- Return True
- End If
- Return False
- End Function
- Private Function Seriennummer() As Boolean
- HRAS = "S"c
- Label1.Text = "Seriennummer"
- Me.Visible = True
- While Me.Visible = True
- My.Application.DoEvents()
- End While
- If Form1.ComboBox14.Text <> "" Then
- Return True
- End If
- Return False
- End Function
- Private Function Auftragsnummer() As Boolean
- HRAS = "A"c
- Label1.Text = "Auftragsnummer"
- Me.Visible = True
- While Me.Visible = True
- My.Application.DoEvents()
- End While
- If Form1.ComboBox15.Text <> "" Then
- Return True
- End If
- Return False
- End Function
Wäre für jeden Tipp dankbar
Dieser Beitrag wurde bereits 2 mal editiert, zuletzt von „Zim“ ()