Programming instructions
Reference
Project Lead The Way
©
and Carnegie Mellon Robotics Academy
©
/ For use with VEX
®
Robotics Systems
Error Messages in ROBOTC Code • 1
ROBOTC has a built-in compiler that analyzes your programs to identify syntax errors, capitalization
and spelling mistakes, and code inefciency (such as unused variables). The compiler runs every
time you download code to the robot and when you choose to compile your program from the Robot
menu in ROBOTC.
Notications regarding any errors, warnings and important information the compiler nds are
displayed in the Errors display screen of the ROBOTC interface.
The Errors display screen reports the number of errors in your code, as well as their types.
Double-clicking a compiler message in the Error display screen will highlight the relevant line of
code in your program. Depending on the type of error, ROBOTC will only be able to highlight the
approximate location. For instance, in the example above the missing semicolon is on line 7 but
ROBOTC will highlight line 8.
ROBOTC generates three types of compiler messages: Errors, Warnings and Information:
Errors:
There was an issue your program that prevented it from compiling. These are usually misspelled
words, missing semicolons, and improper syntax. Errors are denoted with a Red X.
Warnings:
There was a minor issue with your program, but the compiler was able to x or ignore it. These are
usually incorrect capitalizations or empty, innite loops. Warnings are denoted with a Yellow X.
Information:
ROBOTC will generate information messages when it thinks you have declared functions or
variables that are not used in your program. These messages inform you about inefcient
programming. Information messages are denoted with a White X.
Error Messages in ROBOTC Code
Go to Reference Links