Shop OBEX P1 Docs P2 Docs Learn Events
How to return values and files from object-exchange objects? — Parallax Forums

How to return values and files from object-exchange objects?

Dan EDan E Posts: 61
edited 2010-11-17 21:23 in Propeller 1
After reading the propeller manual I have an idea of how to call an object inside of another object, but not how to make it return the values or files I need. It would be helpful if someone could give me a few pointers, or let me know if there are any critical problems they see in my present code.

Thanks,

Dan E

Comments

  • ratronicratronic Posts: 1,451
    edited 2010-11-17 19:15
    The program you posted has quite a few syntax errors. Try straighting those up first using the prop tool to point them out.
  • PerryPerry Posts: 253
    edited 2010-11-17 19:22
    It's pretty simple

    In the objects you use you will see available external functions with PUB declarations.

    There you see the needed inputs, and at the bottom of the function you should see the return result.

    Often objects need to be started before full use (serial, SD, keyboard...)
  • Dan EDan E Posts: 61
    edited 2010-11-17 21:23
    Thanks for the help, it is more clear now, and I will modifiy my program tomorrow.
Sign In or Register to comment.