Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Scan...EndScan still a problem?
Message
De
05/12/2001 18:42:26
 
 
À
04/12/2001 16:47:41
Stan Vaninger
Mitek Industries, Inc
Missouri, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00589532
Message ID:
00590267
Vues:
28
>I remember reading several years ago that Scan...EndScan loops should not be nested because some records do not get processed properly. Is this still the case in VFP7?
>
>Thanks very much.
>Stan

You only need to be careful if you have a FOR condition which is optimisable AND you are changing key values within the loop. No problem with nesting, except if you are scanning the same table, in which case store the pointer.
SELECT TableA
SCAN
do something
nRec= RECNO()
SCAN
do somethingelse
ENDSCAN && TableA
GO m.nRec
ENDSCAN && TableA
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform