Subject RE: [IBO] Field persistence question
Author Alan McDonald
ah, that might work - thanks
Alan

> -----Original Message-----
> From: Svein Erling Tysvaer
> [mailto:svein.erling.tysvaer@...]
> Sent: Monday, 25 November 2002 19:00
> To: IBObjects@yahoogroups.com
> Subject: Re: [IBO] Field persistence question
>
>
> At 21:38 24.11.2002 +1100, you wrote:
> >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
>
> Well, you can use a a variable of type TIB_Column (or something similar)
> and programmatically do
>
> TIB_Column1:=IB_Query1.FieldByName('SomeName');
>
> Then you can use TIB_Column1.AsString or whatever. Note that the
> assignment
> to TIB_Column1 must be done after Prepare. This doesn't eliminate the
> possibility of runtime errors by using FieldByName, but reduces
> the chances
> to once per prepare.
>
> HTH,
> Set
>
>
>
> __________________________________________________________________
> _________
> 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/
>
>