Summary:
GUI On only statement encountered in GUI Off mode
Cause:
GUI On only statement encountered in GUI Off mode. Option 41 prevents this error.
Remedy:
OPTION 41 suppresses this error and ignores GUI syntax when ENV$("GUIMode")="OFF"