Propeller Manual, I cannot get past page 118.
jpyle
Posts: 41
Hello, I am attempting to work my way through the manual by doing all of the examples. All has gone well
until·I got to page 118. It had the student modify code that has been built up from very basic LED
blinking. There is a modification that I have checked over on page 118·, for mistakes on my end, ten times now with no sucess. There is a portion of the code that deals with using " YesNo " in a line after a "PUB Active "·The
YesNo"·statement. Looks like this:
·
Pub Active: YesNo
{{Return True if process is active, FALSE otherwise }}
· YesNo := Cog > 0
The Compiler stops on the " YesNo := Cog > 0 " line and, and tells me that it ·" Expected an Instruction or Variable" and will go no further. Being new to the coding, and·I must be fiarly dense ,·I have tried all I know to get through this situation. Any help would be much appricated.· ( I am going to do a search for page 118 problems now)··· Thanks, John· (Right now I am going to bed, maybe better results after I get some sleep)
until·I got to page 118. It had the student modify code that has been built up from very basic LED
blinking. There is a modification that I have checked over on page 118·, for mistakes on my end, ten times now with no sucess. There is a portion of the code that deals with using " YesNo " in a line after a "PUB Active "·The
YesNo"·statement. Looks like this:
·
Pub Active: YesNo
{{Return True if process is active, FALSE otherwise }}
· YesNo := Cog > 0
The Compiler stops on the " YesNo := Cog > 0 " line and, and tells me that it ·" Expected an Instruction or Variable" and will go no further. Being new to the coding, and·I must be fiarly dense ,·I have tried all I know to get through this situation. Any help would be much appricated.· ( I am going to do a search for page 118 problems now)··· Thanks, John· (Right now I am going to bed, maybe better results after I get some sleep)
Comments
as long as you have "Cog" defined. Are you sure you entered the program correctly as shown on page 118?