Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Using Locate For from Bottom To Top
Message
De
02/06/2014 12:26:14
Mike Yearwood
Toronto, Ontario, Canada
 
 
À
02/06/2014 06:21:04
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP3
Network:
Windows XP
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01601100
Message ID:
01601122
Vues:
48
>Hi,
>
>LOCATE FOR Command Scans for records from Top to Bottom by defauld
>
>Is it possible to Locate records in reverse Direction. If yes, kindly Guide how to do this. If not, what's the alternative, if I have ample number of records.
>
>Regards
>Harsh

It might be very slow this way.
INDEX ON 'A' TAG XATAG
SET ORDER TO XATAG DESCENDING
LOCATE FOR ...


What sequence do you really need? The sequence should be based on fields in the table, not record #. With such fields, you can SET ORDER TO sequence ASC/DESC, SEEK(), SCAN WHILE. Allowing you to process not only the entire set, but also subsets very fast.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform