Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Multiple sort orders on views
Message
De
07/10/1997 17:01:11
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00053592
Message ID:
00053601
Vues:
33
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform