Until a few moments ago i would say yes because it seems logical and fpc raises an exception when trying to set the value programatically.

But while investigating why TAutoIncField.ReadOnly always returns false, i found that, regardless of FReadOnly being set to true in the constructor, this value is overriden in TFieldDef.CreateField throung Attributes.faReadOnly flag.

So i tested in Delphi (TClientDatset and TDbf) and found that TAutoIncField.ReadOnly is false (like fpc).

So what should fpc do:
- Follow delphi behavior and let TAutoIncField.ReadOnly return False?
- Fix TAutoIncField.ReadOnly to return True?

Luiz




_______________________________________________
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel

Reply via email to