I am new to Delphi.
The following should work -
procedure TForm1.Button1Click(Sender: TObject);
const a: Integer=0;
begin
a:=7;
end;
I get error "Left side cannot be assigned to"
I would expect this if I used const a:=12; but not as above.
I would appreciate some guidance.
The following should work -
procedure TForm1.Button1Click(Sender: TObject);
const a: Integer=0;
begin
a:=7;
end;
I get error "Left side cannot be assigned to"
I would expect this if I used const a:=12; but not as above.
I would appreciate some guidance.