FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour To Antonio:
Posts: 723
Joined: Tue Sep 04, 2007 08:45 AM
To Antonio:
Posted: Mon Aug 08, 2011 09:28 AM

Antonio:

When dealing with reports which of the two methods works faster and is more efficient ?
1. Using oRep:bFor & oRep:bWhile
2. Using SET FILTER TO

Thank you.

Posts: 9022
Joined: Thu Oct 06, 2005 08:17 PM
Re: To Antonio:
Posted: Mon Aug 08, 2011 12:36 PM

bFor and SET FILTER TO are equivalent. bWhile is faster because it requires that the records to print are in a range and that you can go fast on the first record of that range (better use a scope).

EMG

Posts: 723
Joined: Tue Sep 04, 2007 08:45 AM
Re: To Antonio:
Posted: Tue Aug 09, 2011 05:49 PM

Enrico:

Thank you for your help. What I'm trying to find out is if an ACTIVATE REPORT oRep works faster with the a condition set in the oFor block, or issuing a SET FILTER command and leaving the oFor block with its default value.

Thank you.

Posts: 9022
Joined: Thu Oct 06, 2005 08:17 PM
Re: To Antonio:
Posted: Tue Aug 09, 2011 07:32 PM

I think they are equivalent.

EMG

Continue the discussion