Subject | Re: [IBO] Field persistence question |
---|---|
Author | Svein Erling Tysvaer |
Post date | 2002-11-25T08:00:04Z |
At 21:38 24.11.2002 +1100, you wrote:
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
>It's a pity that there is no field persistence with the IB_ components. ItWell, you can use a a variable of type TIB_Column (or something similar)
>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
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