I'm trying to show a local variable in a message, but I'm not clear on the concept.
Code:
procedure TForm1.Button1Click(Sender: TObject);
var
i:integer;
begin
i:=1;
ShowMessage(i.AsString);
end;
Error:
[Error] Unit1.pas(31): Record, object or class type required