relating to objects inside an object

Posted by steve on Stack Overflow See other posts from Stack Overflow or by steve
Published on 2010-04-16T23:07:28Z Indexed on 2010/04/16 23:13 UTC
Read the original article Hit count: 170

Filed under:
|

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

© Stack Overflow or respective owner

Related posts about object

Related posts about properties