Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
10 Things to Avoid in VFP Development
Message
De
04/01/2000 00:37:16
Walter Meester
HoogkarspelPays-Bas
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00310318
Message ID:
00312178
Vues:
37
Jim,

The FOR clause is eqiuvalent to the SET FILTER approach IMO. The filtered grid thing IMO is the same as a BROWSE FOR command. Since we can't use a BROWSE as an Object, a SET FILTER in combination with a grid comes in.

I'll give another example:

USE sometable
USE Othertable in O order tag sometag
SET RELATION TO Expression INTO OtherTable

SET FILTER TO &cFilter

REPORT FORM (cReport) TO PRINTER PROMPT


Compare this with:

SELECT * FROM sometable INNER JOIN OtherTable ON Expr WHERE &cFilter INTO CURSOR Cursor

REPORT FORM (cReport) TO PRINTER PROMPT

In most cases I think, not only the xBase approach finishes printing earlier, but also executes faster.


Walter,

>USE SomeFile
>
>Later on ...
>
>REPORT FORM SomeRpt FOR &cFilter TO PRINT
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform