Subject Re: [IBO] Change a readonly field i TIB_Query temporary
Author Jörg Schiemann
Thanks a lot. Such an easy solution and I didn't find it;-)

Jörg

----- Original Message -----
From: "Helen Borrie" <helebor@...>
To: <IBObjects@egroups.com>
Sent: Saturday, December 23, 2000 12:23 AM
Subject: Re: [IBO] Change a readonly field i TIB_Query temporary


> At 12:19 AM 23-12-00 +0100, you wrote:
> >Hi,
> >
> >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
> >"qryAuftragMaterial.FieldsReadOnly.Clear;"
> >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.
>
> Helen
>
>
> All for Open and Open for All
> InterBase Developer Initiative · http://www.interbase2000.org
> _______________________________________________________
>
>
>
>
>