E2114 String constant too long (Delphi)

From RAD Studio
Jump to: navigation, search

Go Up to Error and Warning Messages (Delphi)

The inline assembler has not found the end of the string that you specified. The most likely cause is a misplaced closing quote.


program Produce;

  procedure AssemblerExample;
  asm
    db 'Hello world.  I am an inline assembler statement
  end;

begin
end.

The inline assembler is unable to find the end of the string, before the end of the line, so it reports that the string is too long.


program Solve;

  procedure AssemblerExample;
  asm
    db 'Hello world.  I am an inline assembler statement'
  end;

begin
end.

Adding the closing quote will vanquish this error.