Subject | Re: Setting some fields to readonly |
---|---|
Author | mmenaz@lycosmail.com |
Post date | 2001-10-19T19:41:29Z |
Try investigate this syntax, if you can set the attribute with the
query closed:
qryRubrica.FieldsReadOnly.LinkValues['MYFIELDNAME'] := 'T' // string!
Regards
Marco Menardi
query closed:
qryRubrica.FieldsReadOnly.LinkValues['MYFIELDNAME'] := 'T' // string!
Regards
Marco Menardi
--- In IBObjects@y..., "Paul Hope" <paulhope@a...> wrote:
> 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