PC Review


Reply
Thread Tools Rate Thread

Arraylist IndexOf Structure

 
 
ray@Mississauga.Canada
Guest
Posts: n/a
 
      18th Feb 2010
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
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
ArrayList and indexOf tony Microsoft C# .NET 2 23rd Aug 2006 08:19 PM
ArrayList.IndexOf method Qubeczek Microsoft Dot NET Compact Framework 0 17th Jun 2006 01:09 PM
ArrayList.IndexOf(Object obj) functionality changed in .Net 2.0 =?Utf-8?B?U2FpbEJvZmZpbg==?= Microsoft Dot NET Framework 2 6th Apr 2006 07:14 AM
ArrayList.indexOf(self-defined class) paulyip Microsoft C# .NET 1 21st Jan 2005 06:29 AM
ArrayList.IndexOf() does NOT call my Class Equals() Kurt Tischer Microsoft Dot NET Framework 2 12th Feb 2004 06:00 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:42 PM.