program error ?
Archiver
Posts: 46,084
I am following the course material from the pbasic 2.0 version
(microcontroller book) on trying to run a two LED Program the (if
then)where it will operate both leds depending on high low condition
of two seperate switches, I getan error on the (then) part where it
comes up as (ERROR -expected ":" or end of line!. I am following the
program in the book exactly as it is typed and there are no words
that follow "then" such as - then main as an exemple? I am new at
this and have been through the book and help sections but cannot
correct this to run the program? Help! -.. I have and am running
pbasic 2.5 but I believe book is 2.0 but I just purchased in march.
(microcontroller book) on trying to run a two LED Program the (if
then)where it will operate both leds depending on high low condition
of two seperate switches, I getan error on the (then) part where it
comes up as (ERROR -expected ":" or end of line!. I am following the
program in the book exactly as it is typed and there are no words
that follow "then" such as - then main as an exemple? I am new at
this and have been through the book and help sections but cannot
correct this to run the program? Help! -.. I have and am running
pbasic 2.5 but I believe book is 2.0 but I just purchased in march.
Comments
Can you post your code here so I can see what it looks like? I could
help you better that way and have a better idea of where the error
may be in your program.
Lu Kwan
--- In basicstamps@yahoogroups.com, "alykatz2003" <alykatz2003@y...>
wrote:
> I am following the course material from the pbasic 2.0 version
> (microcontroller book) on trying to run a two LED Program the (if
> then)where it will operate both leds depending on high low
condition
> of two seperate switches, I getan error on the (then) part where
it
> comes up as (ERROR -expected ":" or end of line!. I am following
the
> program in the book exactly as it is typed and there are no words
> that follow "then" such as - then main as an exemple? I am new at
> this and have been through the book and help sections but cannot
> correct this to run the program? Help! -.. I have and am running
> pbasic 2.5 but I believe book is 2.0 but I just purchased in march.
reason that you're getting this error is that 2.5 syntax very strictly
enforces label requirement, like the use of a colon at the end of a
label (this was not required under PBASIC 2.0 syntax).
-- Jon Williams
-- Applications Engineer, Parallax
-- Dallas Office
Original Message
From: alykatz2003 [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=kk0mccouaLahd2PKcP_rRuFEFAgApwoDHbZX6_iRyOU3hZICoeWvJ794ryhCWPQozAl7wz0XArOMjCHz]alykatz2003@y...[/url
Sent: Sunday, March 14, 2004 4:37 AM
To: basicstamps@yahoogroups.com
Subject: [noparse][[/noparse]basicstamps] program error ?
I am following the course material from the pbasic 2.0 version
(microcontroller book) on trying to run a two LED Program the (if
then)where it will operate both leds depending on high low condition
of two seperate switches, I getan error on the (then) part where it
comes up as (ERROR -expected ":" or end of line!. I am following the
program in the book exactly as it is typed and there are no words
that follow "then" such as - then main as an exemple? I am new at
this and have been through the book and help sections but cannot
correct this to run the program? Help! -.. I have and am running
pbasic 2.5 but I believe book is 2.0 but I just purchased in march.