Delphi Error – E2088 Variable name expected

Delphi Compiler Error

E2088 Variable name expected

Reason for the Error & Solution

This error message is issued if you try to declare an absolute variable, but the absolute directive is not followed by an integer constant or a variable name.

program Produce;

var
  I : Integer;
  J : Integer absolute Addr(I);   (*<-- Error message here*)

begin
end.
	program Solve;

const
  Addr = 0;

var
  I : Integer;
  J : Integer absolute I;

begin
end.

Share:

Leave A Reply

Your email address will not be published. Required fields are marked *

You May Also Like

Delphi Compiler Error E2313 Attribute – Known attribute cannot specify properties Reason for the Error & Solution No further information...
Delphi Compiler Error E2379 Virtual methods not allowed in record types Reason for the Error & Solution No further information...
Rodrigo , one of the long time Delphi Developer has been working on one of his personal project “Delphi IDE...