Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grids and Filters
Message
 
 
To
02/10/2015 13:18:49
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 8.1
Network:
Windows 2008 Server
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01625342
Message ID:
01625396
Views:
46
>>If I need to show rows where Expires > datetime(), can I use SET KEY?
>
>SET KEY RANGE DATETIME(),{^9999-12-31}
>
>SET KEY require that index of Expires is the active one.
>in this case, SET FILTER is well optimized
>because the filtered rows are contiguous.
>The regeneration of the grid go in crisis,
>when the filter creates holes very long order
>active

Thanks, in my case the rows should be ordered by another date column, so SET KEY solution will not work for me. I'm thinking that most likely in my case there would be less than 100 rows anyway, so perhaps I should not worry now about SET FILTER. I will need to add an index on the EXPIRES, though, which I forgot to do.

Thanks.
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform