Shop
OBEX
P1 Docs
P2 Docs
Learn
Events
Object's object's methods in Spin — Parallax Forums
toggle menu
Categories
Discussions
Sign In
·
Register
Sign In
·
Register
Categories
Discussions
Sign In
·
Register
×
Home
›
Propeller 1
Object's object's methods in Spin
Lord Steve
Posts:
206
2010-03-11 19:52
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 Green
Posts:
23,101
2010-03-11 19:58
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.
Comments
This gets called with myObject.method