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