Subject | Re: [IBO] Field persistence question |
---|---|
Author | Jason Wharton |
Post date | 2002-11-26T02:04:27Z |
I wasn't saying this wouldn't work. What I was saying is that they cannot be
persistent like they are with the TDataset having them fixed there. Set's
suggestion was excellent!
With IBO here's how it can work:
Prepare of statement gives new TIB_Column objects for both params and
fields. A reprepare such as is produced when InvalidateSQL and Refresh is
called (also search mode, filter changes, etc.) will regenerate new params
objects but not the field column objects. Please keep that in mind...
Regards,
Jason Wharton
CPS - Mesa AZ
http://www.ibobjects.com
-- We may not have it all together --
-- But together we have it all --
persistent like they are with the TDataset having them fixed there. Set's
suggestion was excellent!
With IBO here's how it can work:
Prepare of statement gives new TIB_Column objects for both params and
fields. A reprepare such as is produced when InvalidateSQL and Refresh is
called (also search mode, filter changes, etc.) will regenerate new params
objects but not the field column objects. Please keep that in mind...
Regards,
Jason Wharton
CPS - Mesa AZ
http://www.ibobjects.com
-- We may not have it all together --
-- But together we have it all --
----- Original Message -----
From: "Alan McDonald" <alan@...>
To: <IBObjects@yahoogroups.com>
Sent: Monday, November 25, 2002 5:49 PM
Subject: RE: [IBO] Field persistence question
> Jason,
> no I think Set's suggestion will work
> TIB_Column1:=IB_Query1.FieldByName('SomeName');
> in an after prepare event
>
> Alan
>
> > -----Original Message-----
> > From: Jason Wharton [mailto:jwharton@...]
> > Sent: Tuesday, 26 November 2002 9:27
> > To: IBObjects@yahoogroups.com
> > Subject: Re: [IBO] Field persistence question
> >
> >
> > Your observation is correct and your complaint is heard. If persistent
> > fields appeals to you then I recommend you continue using the
> > TDataset based
> > components. Most of the TIB_Query features are accessible via
TIBODataset
> > anyway.
> >
> > In the TIB_ there are other benefits to doing away with the persistent
> > fields concept.
> >
> > Jason Wharton
> > CPS - Mesa AZ
> > http://www.ibobjects.com
> >
> > -- We may not have it all together --
> > -- But together we have it all --
> >
> >
> > ----- Original Message -----
> > From: "Alan McDonald" <alan@...>
> > To: <IBObjects@yahoogroups.com>
> > Sent: Sunday, November 24, 2002 3:38 AM
> > Subject: [IBO] Field persistence question
> >
> >
> > > It's a pity that there is no field persistence with the IB_
> > components. It
> > > means that the compiler can't catch your fieldname spelling
> > errors - it's
> > > only caught at run time. Is there still no way but to use the
> > fieldbyname
> > or
> > > the fields array?
> > > Alan
> >
> >
> >
> >
> > __________________________________________________________________
> > _________
> > IB Objects - direct, complete, custom connectivity to Firebird or
> > InterBase
> > without the need for BDE, ODBC or any other layer.
> > __________________________________________________________________
> > _________
> > http://www.ibobjects.com - your IBO community resource for Tech
> > Info papers,
> > keyword-searchable FAQ, community code contributions and more !
> >
> >
> > Your use of Yahoo! Groups is subject to
http://docs.yahoo.com/info/terms/
> >
> >
>
>
>
>
>
___________________________________________________________________________
> IB Objects - direct, complete, custom connectivity to Firebird or
InterBase
> without the need for BDE, ODBC or any other layer.
>
___________________________________________________________________________
> http://www.ibobjects.com - your IBO community resource for Tech Info
papers,
> keyword-searchable FAQ, community code contributions and more !
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
>
>