Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Visual Basic > VB 6 Visual Basic 6 > VB.NET
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
VB.NET General VB.NET discussions for issues that don't fall into other VB.NET forums.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VB.NET section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Closed Thread
 
Thread Tools Display Modes
  #1 (permalink)  
Old June 5th, 2003, 10:28 PM
Registered User
 
Join Date: Jun 2003
Location: , , .
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Searching ArrayList

Having problem in search of arraylist, following is the explanation.

Following is the contact class:

Public class contact()
LastName as string
FirstName as string
Age as integer
End Class

I created a arraylist name as a1 and stores contact info in it.

dim a1 as arraylist
a1.Add(New contact(lastname,firstname,age))

Have following Search Criteria for user:

Name contains:
age:

Would like to search what ever user entered in the Name contains and age input. (e.g: if user enterd "A" as name contains and 28 as age, search would bring all the contacts which have "A" in either first or last name with age 28)

Question is Could "IndexOf" be used to search(like the above criteria) in arraylist of objects(contacts)? and if so any hint would be apprecitated.

Thanks,
Closed Thread


Thread Tools
Display Modes

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 Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
ArrayList Mogg-Way C# 2005 5 February 12th, 2008 03:05 PM
Arraylist mechanism anwarraja Pro Java 1 September 6th, 2007 11:54 AM
Help with an arraylist crazy-nun General .NET 4 July 14th, 2005 03:32 AM
ArrayList kobystud C# 4 May 25th, 2004 02:05 PM
Searching ArrayList Mike2000 VB.NET 2002/2003 Basics 1 June 10th, 2003 03:06 AM



All times are GMT -4. The time now is 06:00 AM.


Powered by vBulletin®
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.