Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Last 10 records based on a condition
Message
From
30/12/2001 23:25:16
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00599284
Message ID:
00599295
Views:
27
>>>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform