Subject Re: [IBO] Problem with ReadOnly e NOEdit of TIB_Column
Author Helen Borrie
At 05:18 PM 20-04-01 -0300, you wrote:
>I am having the following problem
>IB_Query1.FieldByName('CodMaq').AsString := '9999999'; // Don´t raise exception
>Is it a Bug?
>Version 3.6.D

AFAIK, those properties only affect the values when displayed in controls, i.e. the purpose is to make them be not editable in the UI.

If the dataset is in dssEdit, it is editable. If you don't want your code to edit a certain column, don't write code that edits it!

If you want a column to be read-only under all conditions, bring it into your application as an aliased or computed column, e.g.

SELECT field1, field2,...CodeMaq as CodeMaq_ro


All for Open and Open for All
InterBase Developer Initiative ·