selectFromList function

Select variables from a list of objects of the same type