Subject Re: [IBO] Change a readonly field i TIB_Query temporary
Author Helen Borrie
At 12:19 AM 23-12-00 +0100, you wrote:
>I've a grid with only one field the user can change.
>If the user change the field and then clicks a button a function changes two
>other fields.
>But because they are readonly they doesn't change.
>I tried
>"qryAuftragMaterial.FieldsReadOnly.Add('MENGE_GESAMT_GELIEFERT=FALSE');" but
>that doesn't work.
>The only mehod which is working is
>But then all fields are changable.
>Can anybody tell me the right way?

Instead of making the dataset ReadOnly, apply the NOEDIT attribute to any
fields which you don't want the user to edit.
Alternatively, make the grid ReadOnly (keeping the dataset ReadOnly=False)
and supply a an IB_Edit for altering the field which can be changed.


All for Open and Open for All
InterBase Developer Initiative ยท