Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How does VFP fetch data in buffering mode?
Message
From
28/12/2000 14:13:13
 
 
To
27/12/2000 20:39:57
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00457209
Message ID:
00457501
Views:
26
Once you issue the TableUpdate, the data is actually written. Hence when you look at it in the other form, it is up to date.

Enabling buffering doesn't mean that you freeze the table at a particular state, just that the changes made INSIDE that datasession are not written until you commit them.

Actually, you have the OLDVAL() and CURVAL() functions to look at the field values as it where when you enabled buffering, or as currently read from disk (not from you buffer).

I hope that clarifies the point.


> I have set my forms' to 2 -private datasession. And, I have a simple test with 2 instance of my form.
> Both instance of form will USE table and set it to table buffering mode in INIT.
>
>USE mytable AGAIN SHARED
>CURSORSETPRO("buffering", 5)
>
> I update a particular record in 1st instance, and issue TABLEUPDATE(). It return .T. to me. Then, I goto 2nd instance to lookup the same record, it will give me the MOST updated record.
> Does VFP only fetch the data once it is needed even buffering is set?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform