Subject Re: [IBO] Re: OldValues
Author Helen Borrie
At 12:35 PM 22-11-00 +0000, you wrote:
>Trouble is I'm using IBOQuery and the VCL, rather than IB_Query, and
>these properties do not seem to be available.

If you can't get at with

MyQuery.FieldByName('Something').OldAsVariant then access the underlying
IB_Column:

with MyQuery.RowData.Columns[index] do
somevar := OldAsVariant ;

(although there might be a quicker route, not sure)

H.



>--- In IBObjects@egroups.com, Helen Borrie <helebor@w...> wrote:
> > At 04:10 AM 22-11-00 -0700, you wrote:
> > >OldAsVariant OldAsString I think are both available.
> > >
> >
> > Confirmed - I've just been using them in an app I'm building.
> >
> > H.
> >
> > >----- Original Message -----
> > >From: <roger@p...>
> > >To: <IBObjects@egroups.com>
> > >Sent: Wednesday, November 22, 2000 4:06 AM
> > >Subject: [IBO] OldValues
> > >
> > >
> > > > Fields in Datasets with cached updates have the very useful
>OldValue
> > > > property, - a variant which holds the value of the field before
>any
> > > > editing.
> > > >
> > > > I am getting rid of all cached updates in our applications, but
>I
> > > > really miss the OldValue. Is there an IBO equivalent, or is
>there
> > > > some method of comparing old values with new values prior to
>posting?
> > > >
> > > >
> > > >
> > > >
> > > >
> > >
> > >
> > >
> >
> > All for Open and Open for All
> > InterBase Developer Initiative · http://www.interbase2000.org
> > ___________________________________________________
>
>
>

All for Open and Open for All
InterBase Developer Initiative · http://www.interbase2000.org
___________________________________________________