Home Why am I getting E2029 Declaration expected but 'FINALIZATION' found
Reply: 0

Why am I getting E2029 Declaration expected but 'FINALIZATION' found

user308
1#
user308 Published in April 26, 2018, 5:16 pm

I don't see any syntax error, my code compiles clean without the finalization section. Here is the last few lines of the unit.

function boolAsTF(b:boolean): string; inline;
begin
  if b then result := 'T' else result := 'F';
end;

finalization
  SyncMgr.Free;
end.
You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.324107 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO