views:

18

answers:

1

Got a problem,

I have an an array of objects inside a constructor of a class. I'm trying to use the array to relate to a property in the object but I can't relate to them.

    lessonObjectsArray(0) = lessonObject1
    lessonObjectsArray(1) = lessonObject2
    lessonObjectsArray(2) = lessonObject3

the properties of the object "lessonObject1" are lessonName, videoLink, pdfLink

I thought it would be tbTest.text = lessonObjectsArray(0).lessonObject1.lessonName

just doesnt work

A: 

It should be:

lessonObjectsArray(0).lessonName
ho1