M
Morten Snedker
So far I've been blessed with a whole-lotta nice help and explaining
in here, so I'll give it a go once again:
I have some difficulty searching an array.
I have a structure:
Public Structure Naturgas
Public Id As Integer
Public Fabrikat As String
Public Effekt As String
End Structure
This is assigned to an ArrayList called _naturgasList:
lst.Id = CType(reader(0).ToString, Integer)
lst.Fabrikat = reader(1).ToString
lst.Effekt = reader(2).ToString
_naturgasList.Add(lst)
Now, in _naturgasList I wish to look up Effekt via Id. How do I do
this?
The runtime content of the Array is at www.dbconsult.dk/db/array.jpg
Thanks in advance for any help.
Regards /Snedker
in here, so I'll give it a go once again:
I have some difficulty searching an array.
I have a structure:
Public Structure Naturgas
Public Id As Integer
Public Fabrikat As String
Public Effekt As String
End Structure
This is assigned to an ArrayList called _naturgasList:
lst.Id = CType(reader(0).ToString, Integer)
lst.Fabrikat = reader(1).ToString
lst.Effekt = reader(2).ToString
_naturgasList.Add(lst)
Now, in _naturgasList I wish to look up Effekt via Id. How do I do
this?
The runtime content of the Array is at www.dbconsult.dk/db/array.jpg
Thanks in advance for any help.
Regards /Snedker