Skip to main content

Compiler Error C0085

Message: Define value expected instead of '<value>‘.

Possible error cause: A string is expected instead of the current value at the displayed location of the pragma.

Error correction: Replace the current value with a string.

Example 369. Example of the error:
PROGRAM PLC_PRG

{IF hasvalue(define, defineValue)}
{END_IF}

Message:

C0085: Define value expected instead of 'defineValue‘.

Error correction:

PROGRAM PLC_PRG

{IF hasvalue(define, '120')}
{END_IF}