Shop OBEX P1 Docs P2 Docs Learn Events
(Funny) How to get SX/B to throw up on itself — Parallax Forums

(Funny) How to get SX/B to throw up on itself

John CoutureJohn Couture Posts: 370
edited 2006-03-06 01:38 in General Discussion
(grin)

Sometimes tracking down errors in your code is ellusive.

Take one of your long programs and put a colon after one of your IF statements and see how many statements you have to comment out before the compiler points to the actual error (grin).· It sends you all over the place! This was my offending statement:


IF x3 = $46 THEN DispTempF:



▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
John J. Couture

San Diego Miramar College

Comments

  • BeanBean Posts: 8,129
    edited 2006-03-06 01:16
    John,
    I would guess the problem is that SX/B assumes that "IF x3 = $46 THEN DispTempF" is a label because it ends with a colon.
    Would you mind posting the whole program (with or without the offending line).
    Bean.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    "SX-Video·Module" Now available from Parallax for only $28.95

    http://www.parallax.com/detail.asp?product_id=30012

    "SX-Video OSD module" Now available from Parallax for only·$49.95
    http://www.parallax.com/detail.asp?product_id=30015

    Product web site: www.sxvm.com

    "Wise men know when they're right. The wisest also·know when they're wrong."
    ·
  • John CoutureJohn Couture Posts: 370
    edited 2006-03-06 01:21
    Oh, Sorry Bean, I found the error! it's just that I found it before the compiler did (grin). It's one of those errors that you look at your program over and over and after I decimated my original program I discovered that the colon was the culprit. It was funny, that's all.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    John J. Couture

    San Diego Miramar College
  • BeanBean Posts: 8,129
    edited 2006-03-06 01:38
    John,
    I'm sure Parallax is listening and will correct this. I guess just a check for a space in a label would be sufficent.
    Bean.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    "SX-Video·Module" Now available from Parallax for only $28.95

    http://www.parallax.com/detail.asp?product_id=30012

    "SX-Video OSD module" Now available from Parallax for only·$49.95
    http://www.parallax.com/detail.asp?product_id=30015

    Product web site: www.sxvm.com

    "Wise men know when they're right. The wisest also·know when they're wrong."
    ·
Sign In or Register to comment.