E2088 Variable name expected (Object Pascal)

From Appmethod Topics
Jump to: navigation, search

Go Up to Error and Warning Messages (Object Pascal) Index

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.