Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Last 10 records based on a condition
Message
De
30/12/2001 23:25:16
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00599284
Message ID:
00599295
Vues:
28
>>>Try
Select mytable
>>>SET ORDER TO
>>>SET FILTER TO < your condition >
>>>GO BOTTOM
>>>SKIP -9
>>>COPY REST TO result
>>>
>>
>>Yes, that would work. I thought of that in the first place. It's just that I don't want to use any SET FILTER command. Otherwise, I would have to take care of resetting it after and this may cause some problems on other logics especially if maintained by other developers.
>
>In this case you can open table again
USE mytable again IN 0 ALIAS temp1
>Select temp1
>* the rest of code
>...
>USE IN temp1
Yeah, that would work.

It'd be nice if SELECT FIRST 10 would be supported as well as SELECT LAST 10.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform