A portion of the statement is either missing or misplaced. Check for a mismatched use of IF … ENDIF within another control statement.
The following example fails because ENDIF is placed within the DO CASE....ENDCASE statement.
IF .T.
В В В DO CASE
В В В В В В CASE .T.
ENDIF
В В В ENDCASE
For more information about executing commands conditionally, see the IF ... ENDIF Command.