Subject Re: [IBO] change the TIB_Query.FieldsIndex at runtime
Author Markus Ostenried
On 12/7/06, bwpvil <bwpvil@...> wrote:
> Hi.
>
> I try to change TIB_Query.FieldsIndex at runtime without any luck
>
> I've tried the following methods
> TIB_Query.FieldsIndex.add()
> TIB_Query.FieldsIndex.Commatext:=
> TIB_Query.FieldsIndex.move(x,y).
>
>
> Is there another method that I must call?

Try something like this:

DataSet.BeginLayout;
try
DataSet.FieldsDisplayWidth.CommaText := sDisplayWidth;
DataSet.FieldsIndex.CommaText := sIndex;
finally
DataSet.EndLayout;
end;

HTH,
Markus