Discussion forum for the BasicX family of microcontroller chips.
DArn silly Basix X code issue - ryan_autet - Jun 28 19:51:42 2007
Hi I have an issue
i want to call this call this sub routine once how ever no matter how i
do it with this if then statment it allways calls it twice...
has any one else encountered this?
Counter5 = True ' RESET RANDOM SPEACH COUNTER <---
If Counter5 = True Then '<------------ BUG I CAll this twice
Counter5 = False
Call Random_Action
End If

(You need to be a member of basicx -- send a blank email to basicx-subscribe@yahoogroups.com )
Re: DArn silly Basix X code issue - Tom Becker - Jun 29 10:19:17 2007
> Counter5 = True ' RESET
> If Counter5 = True Then '<- BUG
> Counter5 = False
> Call Random_Action
> End If
What surrounds this, Ryan? No way this code repeats by itself. A Do
While or Do Until might somehow be suspect, but not an If.
Look outside that code.
Tom

(You need to be a member of basicx -- send a blank email to basicx-subscribe@yahoogroups.com )