Shop OBEX P1 Docs P2 Docs Learn Events
Need help with code ? — Parallax Forums

Need help with code ?

TomvnTomvn Posts: 103
edited 2008-08-13 00:54 in BASIC Stamp
Anyway can· I make·the program· to jump· from master routine direct to· subroutine and the Bs2 just executive· the code within that subroutine?




Post Edited (Tomvn) : 8/12/2008 10:08:31 PM GMT

Comments

  • TCTC Posts: 1,019
    edited 2008-08-12 22:09
    post what you code you have

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    We all make mistakes when we are young………That’s why paste is edible!
  • FranklinFranklin Posts: 4,747
    edited 2008-08-12 22:50
    Put a RETURN at the end of the subroutine and the code will continue on the next line of code from where it was called.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    - Stephen
  • TomvnTomvn Posts: 103
    edited 2008-08-12 23:16
    Thanks Stephen, that help
  • SRLMSRLM Posts: 5,045
    edited 2008-08-13 00:54
    Keep in mind that you are limited to the number of GOSUB commands that you can use: 255 per program and 4 nested. You'll probably never encounter this limit in normal programming, but keep it in mind.
Sign In or Register to comment.