Shop OBEX P1 Docs P2 Docs Learn Events
stupid question :/ — Parallax Forums

stupid question :/

pimpfuupimpfuu Posts: 3
edited 2008-02-13 18:56 in Robotics
Heyy, i recently purchased the sumobot competition kit.
I am generally good with computers, but i have never done any programming. i was just wondering if you have to type in all the commands in the stamp editor maually, or just the values. such as: '
[noparse][[/noparse] I/O Definitions ]
idk how many dashes your supposed to type, but that can be very tedious. I'm sure im missing something/

any help would be greatly appreciated :]

Comments

  • UghaUgha Posts: 543
    edited 2008-02-13 18:44
    Besides lines that look like this:
    ' {$STAMP BS2}
    ' {$PBASIC 2.5}

    Anything with a ' before it is a comment.

    Comments aren't required but help make the code easier to follow and make debugging
    less of a hassle.
  • pimpfuupimpfuu Posts: 3
    edited 2008-02-13 18:47
    ok, thank you. so is there any way to make the dashes come automatically after comments?

    or do i have to tediously place them all in manually? :/
  • UghaUgha Posts: 543
    edited 2008-02-13 18:50
    You'd have to put them in manually, but...

    Anything in a comment is not required for the code to function.
    Its completely ignored by the code in fact...
    So you could change
    '
    [noparse][[/noparse] I/O Definitions ]
    into:
    '-[noparse][[/noparse]I/O Definitions]-
    if you wanted to.

    Or you can leave it out completely... although I don't recommend it because
    then you'll have problems trying to figure out what the heck that code is
    down the road.
  • pimpfuupimpfuu Posts: 3
    edited 2008-02-13 18:55
    oh. i understand now. now i see why its a comment.

    so its basically a seperator for viewing purposes only, so everythings not just one long thing of code.

    thank you very much :]
  • UghaUgha Posts: 543
    edited 2008-02-13 18:56
    No problem [noparse]:)[/noparse]
Sign In or Register to comment.