Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 3 of 3 total
Thread TEDBTABLE.OnFilterRecord issue.
Mon, Jul 9 2007 10:33 AMPermanent Link

Praveen
Hi,

Having a problem with TEDTable.OnFilterRecord.
I'm migrating from DBISAM -> ELEVATEDB. Application makes use of OnFilterRecord in many places in app.

case:
 Table.OnFilterRecord := SomeEvent()
 Table.First;
 while not Table.EOF do
 begin
    // -- something
    Table.Next;
 end.

 procedure SomeEvent()
 begin
    Accept := Table.FieldByName('F1').AsInteger > 1;
 end;

Issue: Once the last record is reached in loop EOF never becomes TRUE, it keeps looping infinitely.

Help!!!! Smile

Praveen A B
Have A Nice Day.
Mon, Jul 9 2007 5:41 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Praveen,

<< Having a problem with TEDTable.OnFilterRecord.
I'm migrating from DBISAM -> ELEVATEDB. Application makes use of
OnFilterRecord in many places in app. >>

Please don't re-post questions that you've sent via email.   Please see my
response via email - I'm still trying to reproduce the issue.

--
Tim Young
Elevate Software
www.elevatesoft.com

Mon, Jul 9 2007 8:17 PMPermanent Link

"Royke"
"Praveen" <praveenb@tpt.com> wrote in message
news:50ECC94A-054D-4FA1-B30C-B53326F359E0@news.elevatesoft.com...
> Hi,
>
> Having a problem with TEDTable.OnFilterRecord.
> I'm migrating from DBISAM -> ELEVATEDB. Application makes use of
> OnFilterRecord in many places in app.
>
> case:
>  Table.OnFilterRecord := SomeEvent()
>  Table.First;
>  while not Table.EOF do
>  begin
>     // -- something
>     Table.Next;
>  end.
>
>  procedure SomeEvent()
>  begin
>     Accept := Table.FieldByName('F1').AsInteger > 1;
>  end;
>
> Issue: Once the last record is reached in loop EOF never becomes TRUE, it
> keeps looping infinitely.
>
> Help!!!! Smile
>
> Praveen A B
> Have A Nice Day.

We have several instances where this happens as well when using the BDE.
Probably due to some table or field event.

for i := 1 to Table.Recordcount do
begin
 Table.RecNo := i;
 ...
end;



>

Image