Michael Van Canneyt wrote
> The problem is in your code and the use of WITH, as I surmised in my
> previous mail.
> 
> In 2.6.4, FieldDef is resolved to the LOCAL VARIABLE FieldDef.
> The code compiles ok.
> 
> In 3.0.0, FieldDef is a NEW READ-ONLY property in TField.
> Because of the WITH, the compiler resolves FieldDef to this property, but
> it
> is read-only, an so it gives an error.

I see, but *it's not my code*, its a code of the big third-party framework
that is working well with all version of Delphi/C++ builder and Lazarus 1.x
with FPC 2.6.4.
You cannot recommend them to change code.
There are many other errors during compile, if someone is interesting I can
provide the list.

So the problem is in DB unit.
The mode Delphi is declared.
It should be compatible.




-----
--
Regards,
Serguei
--
View this message in context: 
http://free-pascal-general.1045716.n5.nabble.com/Bug-in-FPC-3-0-0-was-Bug-in-FPC-3-0-0-tp5724274p5724276.html
Sent from the Free Pascal - General mailing list archive at Nabble.com.
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply via email to