Salve ho un piccolo problema:
Ho creato una classe:
codice:
Public Structure Animations
Dim nome_anim As String
Dim id_anim As Integer
End Structure
Che inizializzo:
codice:
Dim Animation As New List(Of Animations)
Quando devo aggiungere un elemento uso:
codice:
Dim a As New Animations
a.nome_anim = ComboBox1.Text
a.id_anim = 0
Animation.Add(a)
Se devo cercare un elemento:
codice:
For x = 0 To Animation.Count - 1
If Animation.Item(x).nome_anim = nome_da_cercare Then
tot_frame = Animation.Item(x).id_anim
not_found = 1
Exit For
End If
not_found = 0
Next
Quello che non ho capito é come aggiornare un elemento esistente.
Qualcuno mi può aiutare???