Shop OBEX P1 Docs P2 Docs Learn Events
Object's object's methods in Spin — Parallax Forums

Object's object's methods in Spin

Lord SteveLord Steve Posts: 206
edited 2010-03-11 19:58 in Propeller 1
How do I call an object's object's methods?· I can't seem to do:
myObject.myObjectsObject.method

Comments

  • Mike GreenMike Green Posts: 23,101
    edited 2010-03-11 19:58
    You can't do it. When I've needed to do something like this, I've made "wrapper" methods in myObject that just call the necessary methods in myObjectsObject like:
    PUB method
       myObjectsObject.method
    


    This gets called with myObject.method
Sign In or Register to comment.