Advertisement

03.13.2008 at 06:42AM PDT, ID: 23238414
[x]
Attachment Details

Object Lookup / Query

Asked by corrin18 in Microsoft Visual Basic.Net, .NET Framework 2.0, .NET Framework 3.x versions

Tags: Visual Basic

This is probably quite easy , and I know how to do it by LOOPING through the list.
But I was wondering what is the BEST WAY (from a programmnig point of view).
Do I use an Interface? Or how?

public class MyAnimal

public animal_type as string
public num_legs as integer
public has_tail as boolean
public endangered_species as boolean


end class



Dim list_all_animals as List (of MyAnimal)

.......fill list_all_animals from database



Now we want to get just a list of animal that HAVE a TAIL and are an ENDANGERED SPECIES


dim subset as List (of MyAnimal) = .......


??? how do I Start Free Trial
 
Loading Advertisement...
 
[+][-]03.13.2008 at 07:00AM PDT, ID: 21116267

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03.13.2008 at 07:10AM PDT, ID: 21116382

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]03.13.2008 at 08:52AM PDT, ID: 21117484

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03.13.2008 at 09:15AM PDT, ID: 21117742

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]03.13.2008 at 09:54AM PDT, ID: 21118204

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Microsoft Visual Basic.Net, .NET Framework 2.0, .NET Framework 3.x versions
Tags: Visual Basic
Sign Up Now!
Solution Provided By: Irzana
Participating Experts: 2
Solution Grade: A
 
 
[+][-]03.13.2008 at 10:44AM PDT, ID: 21118767

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628