Shop OBEX P1 Docs P2 Docs Learn Events
Object question — Parallax Forums

Object question

dondedonde Posts: 51
edited 2009-11-18 00:48 in Propeller 1
Still being a newbie, I don't think I can do this.
Can I access a data string in the DAT block of one Object from a different Object within the same application?

donde

Comments

  • MagIO2MagIO2 Posts: 2,243
    edited 2009-11-17 21:43
    Not by simply using it's name. But you can add a function to the object that returns the adress of the string.

    Then you can use
    byte[noparse][[/noparse] adress ]
    word[noparse][[/noparse] adress ]
    long[noparse][[/noparse] adress ]
    to modify/read content.
  • dondedonde Posts: 51
    edited 2009-11-18 00:48
    Can you give me an example of a function, please?
Sign In or Register to comment.