Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Scan...EndScan still a problem?
Message
De
05/12/2001 11:39:06
Walter Meester
HoogkarspelPays-Bas
 
 
À
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:
00589918
Vues:
35
Hi stan,

I guess, you are referring to a structure like:
SELECT Orderlines
SCAN FOR &cSomeExpression
    m.Orderno = OrderLines.Orderno

    SCAN WHILE Orderno = m.Orderno
        DO SomeProcessing
    ENDSCAN
ENDSCAN
Indeed, the first records succeeding the last of each orderno, don't get processed. This is caused by the fact that the ENDSCAN skips records and that in the sample above the last ENDSCAN is executed directly after the first one without processing. This behaviour is by design, so not by any means a bug.

You could easely work arround the problem to add a SKIP - 1 after the first ENDSCAN or use a DO WHILE




>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform