Subject Re: [IBO] "2-nd time thru" problems
Author Jason Wharton
Interesting. I think the problem is due to the Fields getting the assignment
but not sharing it with the BufferFields as it should. Try assigning that
even to both the Fields and the BufferFields and see what happens. Use
BufferFieldByName and see if it will work as you are expecting.

Jason Wharton
CPS - Mesa AZ
http://www.ibobjects.com


----- Original Message -----
From: "Phil Henningsen" <PhilH@...>
To: <IBObjects@yahoogroups.com>
Sent: Sunday, August 12, 2001 11:58 PM
Subject: [IBO] "2-nd time thru" problems


> I have several instances of what I characterize as "2-nd time thru"
> problems. Meaning that it works the "first time", and doesn't work
thereafter.
>
> Am I missing something "big" here?
>
>
> Here is a typical example:
>
> I have the following:
>
> procedure TdmData.ThorClearingQueryAfterOpen(IB_Dataset: TIB_Dataset);
> begin
> with ThorClearingQuery do
> begin
> FieldByName('Debit_Or_Credit').OnGetText := fmMain.GetTextDbCrIBO;
> FieldByName('Card_Type').OnGetText :=
fmMain.GetTextCardTypeIBO;
> end;
> end;
>
> Assuming that "GetTextDbCrIBO" knows how to translate 'D' into 'Debit' and
> 'C' into 'Credit' and that "GetTextCardTypeIBO" knows the difference
> between Visa, MasterCard, etc.
>
> what I get looks like: (portions omitted)
>
> Row Db/Cr Card Type
> 1 Debit Visa
> 2 D 4
> 3 C 4
>
> That is, the "GetText" works on the FIRST row, and NOT thereafter.
>
> Thanks again!
>
> Phil Henningsen
>
>
>
>
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
>