Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Action Every Interval
Message
De
24/04/2002 07:30:14
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00648415
Message ID:
00648558
Vues:
17
>Hi Steve,
>
>>I have a monster SCAN loop where I want to report status every n rows. I know I want to do something with MOD() to make this happen, but I can't get the logic in my head. Anyone?
>
>Hilmar already posted the solution regarding MOD(). If your table might contain deleted records and you have SET DELETED ON, than you might prefer to have your own counter variable inside the scan loop, rather than using recno().

Also in some other cases: SET FILTER, SET ORDER.

OTOH, if you SELECT ... INTO CURSOR NOFILTER and then process the result (for a report), none of the above apply.

Hilmar.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform