Syntax Error in Character Constant

Description

A character constant is not allowed as it contains more than one character. If the character constant is specified using the code, the code value may fall out of range.

Troubleshooting Tips

Specify a single character as a constant value or check the code value. The code value must fall within the tolerance range for the character data type, that is, 0-65535.

Example

Sub Main;
Const
    c = #65536;
    c1 = 'ab';
Begin
    
End Sub Main;

When the specified code is compiled, each string of the code in the Const block displays the following error: Syntax error in character constant. Decrease the value of the first constant and remove a symbol on the second constant.

See also:

Compiler Messages