Subject Re: [IBO] Field persistence question
Author Jason Wharton
As long as you make it so that the column is defined as a private member of
the datamodule/form and you have the assignments to these in the
AfterPrepare/AfterUnprepare events using the FindField/FindParam and check
for nil when operating upon you will effectively have what you are after. I
use this method quite a bit in my service applications.

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 7:01 PM
Subject: RE: [IBO] Field persistence question


> Helen
> Set suggested it...
> Intead of using 'IB_Query1.FieldByName('field1').AsString' syntax wherever
I
> need it and have the compiler not pickup spelling errors in the 'field1' ,
> then after prepare I create TIB_Column, assign it once then use
> TIB_Column1.AsString..
> I haven't tried it yet but seems logical..
> is it a really stupid thing to do?
> Alan
>
> > -----Original Message-----
> > From: Helen Borrie [mailto:helebor@...]
> > Sent: Tuesday, 26 November 2002 11:57
> > To: IBObjects@yahoogroups.com
> > Subject: RE: [IBO] Field persistence question
> >
> >
> > At 11:49 AM 26-11-02 +1100, you wrote:
> > >Jason,
> > >no I think Set's suggestion will work
> > >TIB_Column1:=IB_Query1.FieldByName('SomeName');
> > >in an after prepare event
> >
> > Alan,
> > I'm *really* curious as to why you are doing this. What does your
> > TIB_Column1 object belong to?
> >
> > Helen