Subject | Re: [IBO] Problem with ReadOnly e NOEdit of TIB_Column |
---|---|
Author | Helen Borrie |
Post date | 2001-04-20T21:47:54Z |
At 05:18 PM 20-04-01 -0300, you wrote:
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
FROM...
Regards,
Helen
All for Open and Open for All
InterBase Developer Initiative · http://www.interbase2000.org
_______________________________________________________
>I am having the following problemAFAIK, those properties only affect the values when displayed in controls, i.e. the purpose is to make them be not editable in the UI.
>
>Example:
>
>IB_Query1.FieldByName('CodMaq').AsString := '9999999'; // Don´t raise exception
>
>Is it a Bug?
>
>Version 3.6.D
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
FROM...
Regards,
Helen
All for Open and Open for All
InterBase Developer Initiative · http://www.interbase2000.org
_______________________________________________________