Shop OBEX P1 Docs P2 Docs Learn Events
Ram data on different program slot (RUN command) — Parallax Forums

Ram data on different program slot (RUN command)

AmaralAmaral Posts: 176
edited 2007-01-22 03:48 in BASIC Stamp
Hi all ,· just a quick question.

I need more space on BS program and I will buy BS2p but i'm wondering when I change the program to a different Slot, using Run Command,· is the data in previous variables lost?

Thanks in advance.


Ricardo Amaral

Comments

  • Chris SavageChris Savage Parallax Engineering Posts: 14,406
    edited 2007-01-22 01:45
    Ricardo,

    As long as you declare your variables the same in all slots they will be preserved. It is recommended to copy/paste them between slots to ensure they are the same. I hope this helps. Take care.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Chris Savage
    Parallax Tech Support
  • AmaralAmaral Posts: 176
    edited 2007-01-22 02:02
    Thanks Chris

    that´s all I need to know


    Ricardo Amaral
  • ZootZoot Posts: 2,227
    edited 2007-01-22 02:56
    Tracy Allen has a great write-up on variable preservation, multi-slot management, etc. He mentions the BS2sx, but the theory and application is the same for all the multi-slot Stamps:

    www.emesystems.com/BS2SX.htm#variables

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    When the going gets weird, the weird turn pro. -- HST
  • AmaralAmaral Posts: 176
    edited 2007-01-22 03:36
    thats awesome article ! Thanks Zoot
  • ZootZoot Posts: 2,227
    edited 2007-01-22 03:48
    Thank Tracy Allen smile.gif

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    When the going gets weird, the weird turn pro. -- HST
Sign In or Register to comment.