|
Run command... frightening
Posted by Gui Cavalcanti at 04/14/2001 11:15 AM EST
Student on team #422, Mech Tech, from Governor's School (GSGIS) and Verizon.
All you programmers remember that old series of posts about the PBasic RUN command.. Now, I tried this is a series of three programs to see if it would work, and nothing worked at all. The compiler would run through my program, then hit the run command and would stop on the word after it. Here's an excerpt from my code:
(By the way, the STAMP FILES thing is the initialization, I couldn't find the exact wording at the time of this message)
------------InitProg (Initialization and SERIN line---
{STAMP FILES InitProg, MainProg, SerOProg}
(Declare variables, constants, aliases)
(Initialize variables)
(Serial In line)
RUN MainProg
---------------------------MainProg (Main Program) ---
{STAMP FILES InitProg, MainProg, SerOProg}
(Declare variables, aliases, constants)
(Main programming without gosubs)
RUN SerOProg
-----------------------------SerOProg (Serial Out) ----
{STAMP FILES InitProg, MainProg, SerOProg
(Declare variables, constants, aliases)
(SEROUT line)
RUN InitProg
--
Now, I know one problem here is that you are going back to initialization and your old variables would be rewritten automatically, so your initialization would have to be a separate program from the serial in line.. but other than that, this doesn't work at all. Could someone help me out here?
-Gui
__________________
This message was archived from an earlier forum system. Some information may have been left out. Start new discussion in the current forums, and refer back to these threads when necessary.
|