I'm just wondering if anyone else has come across this rather obtuse error. I have a procedure that looks loosely like this:
procedure dostuff();
begin
if session_started = true then // global var
begin
// do bunch of calculations
// goes on for a while
// then at the end we enable the save button
save_score.enabled := true; // save_score is a tbutton - nothing special about it!
end;
end;
With that declaration the structure view tells me that 'TButton' does not contain a member named 'Enabled' at line 4499. But the code compiles and executes just fine! And if I do it this way:
procedure dostuff();
begin
if session_started = true then // global var
begin
// do bunch of calculations
// goes on for a while
// then at the end we enable the save button
with save_score do
begin
enabled := true;
end;
end;
end;
Then I get no complaint from the viewer and it still compiles.
So anyone know what the deal is here? It's not earth shattering by any means, but its just weird that it would complain about such a seemingly innocuous piece of code.