Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Scan endscan break
Message
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
Scan endscan break
Divers
Thread ID:
01276291
Message ID:
01276291
Vues:
73
I another database language I use there is a powerful FOR loop...
for each customer where customer.country='USA' 
    break by customer.state no-lock:

    if first-of(customer.state) then do:
        /* do something with first record */
    end.

    /* do something with records */
   
    if last-of(customer.state) then do:
        /* do something with last record  */
    end.

end.
Scan endscan sort of does this but I cannot break. Can VFP do something like this?
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform