Subject Re: [IBO] TIB_Query.FieldByName
Author sveinpetter@hotmail.com
Thank you, Mr. Worboys, I agree with you, and I did search the
properties, unfortunately AFTER posting the comments. Sorry about
that.

However, if you concider parsing with FieldByName to be a commonly
used field existance check, then I would still recommand a nil result
on existance failiure due to IBO conversions.

Best regards,
pfewww

--- In IBObjects@y..., "Geoff Worboys" <geoff@t...> wrote:
> > I find it a bit inconvenient that I cannot check
> > TIB_Query for a fieldname without risking an exception.
>
> Yes you can.
>
> var
> tmpCol: TIB_Column;
> begin
> if IB_Query.Fields.GetByName( 'AFIELD', tmpCol ) then
> begin
> <do something with tmpCol>
> end;
> end;