Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Change buffering of a cursor
Message
De
18/05/2017 13:27:32
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01651184
Message ID:
01651192
Vues:
71
>Hi,
>
>I am trying to ZAP records in the cursor which has the Buffering set to 5 (I tested using CursorGetProp())
>
>So I need to first change the Buffering to 1, right? Here is how I do it:
>
>
>lSuccess = CURSORSETPROP("Buffering", 1, cViewName)
>
>
>But I get a message that "The view require either db_bufoptrow or db_bufoptable" . What do I need to do?
>
>TIA
>
>UPDATE. This cursor was created as a cursor to Cursor Adapter object. But then it was detached. I suppose VFP still "considers" it as a view. So I need to learn how to change this cursor from a "view" to an ordinary cursor; so that I can ZAP it.

Don't change the buffering, do this:
ca.sendupdates=.f.
zap
tableupdate(.t., .t., "myalias")  && does nothing but will clear the fieldstates
ca.sendupdates=.t.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform