Go to Post FIRST's awesomeness cannot be described in numbers. - Shinglei [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Spotlight this post!  
Unread 31-01-2002, 22:30
Ian W. Ian W. is offline
College? What?
no team (Gompei and the Herd)
Team Role: College Student
 
Join Date: Jan 2002
Rookie Year: 2002
Location: Worcester, MA | Smithtown, NY
Posts: 1,464
Ian W. is a name known to allIan W. is a name known to allIan W. is a name known to allIan W. is a name known to allIan W. is a name known to allIan W. is a name known to all
Send a message via AIM to Ian W.
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
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

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


All times are GMT -5. The time now is 15:42.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi