Path problems

I’m having some difficulties with functions assigned to objects.

I have a list where the names of my objects are held. From this list I’m trying to assign functions using “= function(){…}” with a for loop.

My list contains all info about the path for each object.

But how do I set up the path to each object?

Please help me