Hi Russ,
I have this book in front of me. You just stated that you are using PicBasic Pro. Peek and Poke are not used in this compiler. Chuck's book gives examples for both PicBasic AND PicBasic Pro. You will see, for example on page 158 an example of a program using PicBasic. On page 160 you will see the same program only written for PicBasic Pro. This is probably why you are getting the syntax error message. You can do the same thing from one compiler to another as long as the way you write is compatible with the respective compiler.
Quote from page 160 "If you compare the PBC program to the PBPro program it becomes clear that not having to PEEK and POKE makes the PBPro version much easier to use and understand."
I started out using PBC after working with Stamps. I quickly found the shortcomings and jumped to PBPro. PicBasic was written to advance from Basic Stamps to PICs and PicBasic Pro was the progression from Basic Stamp 2's.
Have another shot at the demo program using the Pro demo.
Have a nice day!
BobK
Bookmarks