Prallax newbe programming problems
the_0utsider1
Posts: 13
I am trying to program a 2P 24 pin.
I have a program that would use gosub 50 times to call 1 of 3 subroutines frequently.
When debugging it reports "expected a label".
This is what i have:
gosub eject
.
.
.
.
eject:
If i read the doc correctly, i can only use gosub a few times. What can i substitute gosub with so as to run the subroutine and return to the same place in the program?
another problem i have - Can i put a "Do Loop while" inside another "do loop while" the program errored out with this.
lastly, if i do a if then,
if x=0
then
echo 1
echo 2
else
echo 3
if then only applies to the line echo1. it will read echo 2 every time. How do i get it to run everything if x=0??
Is there a website where people post code??
TIA
I have a program that would use gosub 50 times to call 1 of 3 subroutines frequently.
When debugging it reports "expected a label".
This is what i have:
gosub eject
.
.
.
.
eject:
If i read the doc correctly, i can only use gosub a few times. What can i substitute gosub with so as to run the subroutine and return to the same place in the program?
another problem i have - Can i put a "Do Loop while" inside another "do loop while" the program errored out with this.
lastly, if i do a if then,
if x=0
then
echo 1
echo 2
else
echo 3
if then only applies to the line echo1. it will read echo 2 every time. How do i get it to run everything if x=0??
Is there a website where people post code??
TIA
Comments
The IF statement is IF <expression THEN, so you'd write:
Remember to use the [ code ] and [ /code ] brackets as described here:
In the future, most postings that have to do with the Basic Stamps are posted in the Basic Stamp forum here. Each of the forums has a description of the main purpose of the forum. Read those for details.