Subject Re: [IBO] Setting some fields to readonly
Author Paul Hope
Thanks Jason

> It might also be ForceControlsReadonly...

ForceControlsReadonly did the job - ControlsReadOnly is a readonly property.

> Sorry my memory is so fuzzy on this.

Not so fuzzy :-)

Regards
Paul

> ----- Original Message -----
> From: "Jason Wharton" <jwharton@...>
> To: <IBObjects@yahoogroups.com>
> Sent: Friday, October 19, 2001 10:31 AM
> Subject: Re: [IBO] Setting some fields to readonly
>
>
> > There is a way at runtime you can adjust this. There is a property of
the
> > TIB_Column you can set.
> >
> > I think it is ControlsReadOnly.
> >
> > Jason Wharton
> > CPS - Mesa AZ
> > http://www.ibobjects.com
> >
> > ----- Original Message -----
> > From: "Paul Hope" <paulhope@...>
> > Newsgroups: egroups.ibobjects
> > To: <IBObjects@yahoogroups.com>
> > Sent: Friday, October 19, 2001 8:12 AM
> > Subject: [IBO] Setting some fields to readonly
> >
> > > Hi
> > >
> > > I have an IB_Query Version 3.6Dj and want to optionally set nearly all
> the
> > > fields to read only in code. I start by setting them all to read only
> as
> > > follows
> > >
> > > for i:=0 to ib_qCusData.FieldCount-1 do
> > >
> > >
ib_qcusdata.FieldsReadOnly.Add(ib_qCusData.fields[i].FieldName+'=True');
> > >
> > > then I delete some lines from the FieldsReadOnly stringlist. Problem
> is
> > > the query is prepared each time a line in fieldsReadOnly is set ie
once
> > for
> > > each field :-(
> > >
> > > Is there a better way (I can't do Fields[i].ReadOnly:=True because
> > ReadOnly
> > > is readonly) or how can I stop it repreparing for each field?
> > >
> > > Regards
> > > Paul
>
>
>
>
>
___________________________________________________________________________
> IB Objects - direct, complete, custom connectivity to Firebird or
InterBase
> without the need for BDE, ODBC or any other layer.
>
___________________________________________________________________________
> http://www.ibobjects.com - your IBO community resource for Tech Info
papers,
> keyword-searchable FAQ, community code contributions and more !
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
>
>