Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Index View in buffering mode?
Message
De
14/10/1997 18:27:51
Bob Lucas
The WordWare Agency
Alberta, Canada
 
 
À
14/10/1997 17:40:02
Dragan Nedeljkovich
Now officially retired
Zrenjanin, Serbia
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00054275
Message ID:
00054553
Vues:
37
You can manipulate the buffering mode in order to create an index (or indexes) on cursors

lnBuffermode = CURSORGETPROP("Buffering")

*-- force buffering to record

CURSORSETPROP("Buffering", 3)

INDEX ON <> TAG <> DESC ADDITIVE

CURSORSETPROP("Buffering", lnBuffermode)

I have this as a method in a SQL object to automatically index data coming back from remote cursors (SQL Server)


>>sequence the records. It works fine if I am using non-buffered view and
>>tables. But when I use view with table buffering, VFP stops me by saying
>>view with buffering cannot be indexed.
>
>In all the situations where the cursor or whatever didn't like indexing,
>it came to it that it didn't like having a structural index, but other
>indexes were fine. So:
>
>select myview
>dx_lc=sys(3) && or dx_lc=TempDir_gc+sys(3)
>Index on whatever tag first of (dx_lc)
>Index on anything tag second of (dx_lc)
>Index on another tag third of (dx_lc)
>
>This should work (I've never had a situation like yours, so I can't try
>it). Now I'm not sure the (dx_lc+".cdx") will be automatically deleted
>when you close the view - better check on that.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform