Arraylist IndexOf Structure

R

ray

How can I do a IndexOf or Contains with ArrayList when the ArrayList items
are Structure data?

for example:
Private Structure mystruct
Public displayid As Integer
Public displayType As String
Public displayValue As String
End Structure

Dim InstanceofMyClass As mystruct

While dbread.Read()
With InstanceofMyClass
.displayid = dbread("displayid")
.displayType = dbread("display_type")
.displayValue = dbread("display_value")
End With
MyArrayList.add(InstanceofMyClass)
End While
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Members online

No members online now.

Forum statistics

Threads
473,770
Messages
2,569,583
Members
45,073
Latest member
DarinCeden

Latest Threads

Top