I'm starting to realize this program's been copied line for line from something written in PTC. The syntax for many, many of the commands have changed between the two versions. If this is your own program, you'd do well to spend some time flipping through the documentation at smilebasic.com (particularly the long instruction list) to see what's changed. If this is someone else's program...