|
|
|
![]() |
|
|||||||
|
||||||||
|
|
Thread Tools | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
Subtotaling in PBASIC?
This is a pretty obvious question:
Is it possible to subtotal in PBASIC? Like, every time a cycle completes, a variable, lets call it Counter, goes up one? I know in C++ to do that it's simple, just one line of code: Counter = Counter + 1; or Counter++; If I can, how can I do that in PBASIC? My other programming sidekick thought it would just be: Counter = Counter + 1 Then, once a cycle, Counter would increase one integer, and eventually a "If Statement" would reset it to zero. I'm not sure if that syntax is right, and I figured might as well ask, and save some time and lots of possible fustration, as was caused with the switch operated PWMs, as some of you know . So, if I'm right, thanks, if I'm completely wrong, well, don't feel bad to be brutaly honest, even though that really isn't the spirit here, which is good.Thanks, Ian W. |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| PBASIC ARCTAN function | Greg Ross | Programming | 14 | 11-05-2003 12:28 |
| Need to learn PBASIC...Where Should I Go? | IMDWalrus | Programming | 5 | 29-04-2003 16:43 |
| Obscure PBASIC for RoboEmu | rbayer | Programming | 1 | 28-03-2003 23:57 |
| PBasic 2.5 vs. 2.0 | Anthony Kesich | Programming | 6 | 09-02-2003 22:06 |
| RoboEmu v.1a (another PBASIC emulator) | rbayer | Programming | 0 | 07-07-2002 00:45 |