Shop OBEX P1 Docs P2 Docs Learn Events
Debug problem with character display — Parallax Forums

Debug problem with character display

PapaDoc65PapaDoc65 Posts: 1
edited 2006-03-17 03:46 in BASIC Stamp
I am having a problem with displaying a character that I change in my program using Debug.

I define·several variables to be a Byte and then I assign them either "+" or "-" or "X" or "Y".· When I use the command, "Debug STR ? VariableName" , it returns the value as the first character, but adds a lot of garbage to the output line.· If I output the ASCII value, it is correct.· Why is Debug adding all the garbage to the output?

Comments

  • Bruce BatesBruce Bates Posts: 3,045
    edited 2006-03-17 03:46
    PapaDoc65 -

    You are causing the "garbage" to appear by use of the "?" sub-parameter. Try removing it so that all you have is: Debug STR VariableName

    Regards,

    Bruce Bates

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    <!--StartFragment -->
Sign In or Register to comment.