Subject RE: [IBO] Getting field constraints from TIB_Query
Author Bert Haver
Thanks for your reply. I have seen that TIBOQuery descends from TDataSet.
However I was aiming at TIB_Query because the TIBOQuery components may not
be that efficient and are only supplied for compatibility. You think there
is no performance penalty when using the TIBO Components ?



-----Original Message-----
From: Helen Borrie [mailto:helebor@...]
Sent: vrijdag 7 september 2001 13:09
Subject: Re: [IBO] Getting field constraints from TIB_Query

At 12:26 PM 07-09-01 +0200, you wrote:
>I used to work with IBX to access my IB Database. Now I'm migrating to IBO.
>Because IBX Table and IBX Query both inherit from TDataSet I encounter a
>I'm using TDataSet.Fields[x] to get hold of a fieldconstraint 'Required'.
>Since IBO Query and Table don't have a shared ancestor (dataset) I don't
>have access to the IBQuery.Fields[x] property.
>How can I obtain fieldconstraints from a IBOQuery is my question.

If you are using TIBOQuery, you are working with a TDataset descendant. All
the methods and properties of TDataset are available. Instantiate the Field
Objects just as in the native VCL, by right-clicking on the iboquery to
display the Fields Editor, then right-click on that display and select Add
All Fields. You will notice that the Required property is present, along
with all the others you are used to.


All for Open and Open for All
InterBase Developer Initiative ยท

Your use of Yahoo! Groups is subject to

[Non-text portions of this message have been removed]