|
|
|
![]() |
|
|||||||
|
||||||||
|
|
Thread Tools | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
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 |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Basic Run Error | BBFIRSTCHICK | Programming | 10 | 02-04-2003 22:43 |
| How is your team run? | D.J. Fluck | General Forum | 38 | 29-12-2002 08:23 |
| Take the boxes and run! | Rich Wong | General Forum | 16 | 21-12-2002 00:07 |
| SCUM ALERT! Read if you run ANY web site, especial ones that use e-commerence!! | Joe Matt | Chit-Chat | 2 | 03-11-2002 13:10 |
| Basic Run Error | Ulibrium | Programming | 12 | 21-02-2002 01:02 |