Shop OBEX P1 Docs P2 Docs Learn Events
Long Lines — Parallax Forums

Long Lines

David NaffinDavid Naffin Posts: 10
edited 2005-05-11 23:15 in General Discussion
Is there any way to perform a line continuation? This would be handy for long lines such as branch commands with many states.

Comments

  • David NaffinDavid Naffin Posts: 10
    edited 2005-05-11 21:52
    I guess I should have mentioned that this is in regards to SXB.
  • Jon WilliamsJon Williams Posts: 6,491
    edited 2005-05-11 23:15
    If I remember correctly, lines are limited to 240 characters.· Still, it's tough when you have a lot of targets.· What I've done in BASIC Stamp programs is split the BRANCH lines like this:

    · brTarget = target
    · BRANCH brTarget, Task1, Task2, Task3
    · brTarget = brTarget - 3
    · BRANCH brTarget, Task4, Task5, Task6

    The first line is used to preserve the value of the original target -- just in case it's needed.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Jon Williams
    Applications Engineer, Parallax
    Dallas, TX· USA
Sign In or Register to comment.