Subject Re: [IBO] Getting field constraints from TIB_Query
Author Jason Wharton
They are roughly equivalent. Use either of your choice and expect good
performance.

Jason Wharton
CPS - Mesa AZ
http://www.ibobjects.com


----- Original Message -----
From: "Bert Haver" <b.haver@...>
To: <IBObjects@yahoogroups.com>
Sent: Friday, September 07, 2001 8:31 AM
Subject: RE: [IBO] Getting field constraints from TIB_Query


Helen,
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 ?

Thanks,

Bert


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


At 12:26 PM 07-09-01 +0200, you wrote:
>Hello,
>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
>problem.
>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.

regards,
Helen

All for Open and Open for All
InterBase Developer Initiative ยท http://www.interbase2000.org
_______________________________________________________




Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/






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





Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/