Shop OBEX P1 Docs P2 Docs Learn Events
DEGUGIN Help Needed! One Input, Two Output Variables? Help please! — Parallax Forums

DEGUGIN Help Needed! One Input, Two Output Variables? Help please!

hellohellosharphellohellosharp Posts: 1
edited 2011-02-07 22:15 in BASIC Stamp
Hey guys, I am in desperate need for a way to enter one input into the DEBUG and have it split this input into two variables. Example: I enter 285329 into DEBUG. Var1 gets set equal to 285 and Var2 gets set equal to 329. Is this possible?

Thanks for the help!

Comments

  • Mike GreenMike Green Posts: 23,101
    edited 2011-02-07 22:15
    The DEC formatter allows fixed length fields. If you use "DEBUGIN DEC3 Var1, DEC3 Var2" that accepts two 3 digit decimal numbers with no punctuation between them. Look at the Basic Stamp Syntax and Reference Manual chapters on DEBUGIN, DEBUG, SERIN, and SEROUT. There's also an appendix on these formatters.
Sign In or Register to comment.