Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Multiple sort orders on views
Message
From
07/10/1997 17:01:11
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00053592
Message ID:
00053601
Views:
28
>You can index a view from BeforeOpenTables:
>
> nodefault
> dodefault()
>
> select vview && vview is the DataEnvironment
>
> index on {fieldname1} tag {tagname1}
> index on {fieldname2} tag {tagname2} ...
>
> cursorsetprop("Buffering", 5, "vview")
>
>Or from anywhere else when you're using optimistic row buffering, and no pending updates:
>
> cursorsetprop("Buffering", 3, "vview")
>
> index on {fieldname1} tag {tagname1}
> index on {fieldname2} tag {tagname2} ...
>
> cursorsetprop("Buffering", 5, "vview")

Thanks, that trick allow to keep cursor buffering to 5 on views as we can't index while being on buffering 5.
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
Reply
Map
View

Click here to load this message in the networking platform