bobbydigital
Mitglied
Habe doch die zip im Anhang mitgeschickt.
Ich dachte so wäre es richtig:
Ich dachte so wäre es richtig:
Code:
Public Class maske1
Public strDaten(0, 6) As String
Dim strDatensatz As Integer
Dim pfad As String = "C:/Dokumente und Einstellungen/Administrator/Desktop/support.txt"
Private _CustomerList As List(Of CustomerDefinition)
Private _isLoaded As Boolean = False
Public Property CustomerList() As List(Of CustomerDefinition)
Get
If _isLoaded = False Then
loadCustomerData(pfad)
_isLoaded = True
End If
Return _CustomerList
End Get
Set(ByVal value As List(Of CustomerDefinition))
_CustomerList = value
End Set
End Property
Private Sub loadCustomerData(ByVal fileName As String)
_CustomerList = New List(Of CustomerDefinition)
'Auslesen der Textdatei in einer Schleife und die Daten in die Liste eintragen
'KNR;Name;Telefonnummer;Problem;Seriennummer
_CustomerList.Add(New CustomerDefinition("id", "name", "phone", "problem", "snr", "dz"))
End Sub