Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Change buffering of a cursor
Message
 
 
To
18/05/2017 13:27:32
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01651184
Message ID:
01651193
Views:
94
>>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.
>
Ok. I got around the ZAP issue using a different approach. But now I am having a problem with a Buffering. I will create a new thread regarding the Buffering issue.
Thank you.
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Previous
Reply
Map
View

Click here to load this message in the networking platform