The PUBLIC or LOCAL command tried to change the state of a variable that already exists. For example, if you have a variable x that is not public and then issue PUBLIC x, you get this error.
Variables created in the Command window are public by definition. To create a variable that is not public, use a program (.PRG) file.