Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Data buffering of views fails
Message
From
20/05/2002 08:49:19
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Data buffering of views fails
Miscellaneous
Thread ID:
00658833
Message ID:
00658833
Views:
47
I recently saw some unusual behavior I cannot explain.

I have a form which works on four different views of a single table. Optimistic table data buffering is set on for all four views.

When a change was made to one particular view the data buffering did not work. That is the oldval() function returned the new value. When I left the form I got cursor contains uncommitted changes errors. Data buffering worked for the other three views.

I discovered that I had a bound combo box control whose init method contained a this.Value = "something" statement, when "Something" was not an allowed choice. In other words I was changing the data in the opening record of the view when I opened the form. When I removed the statement the data buffering worked as it should.

My question is why did the fact I had an uncommitted change to a view prevent the data buffering from working? Do I have yet another problem?
Best Regards
Don Simpson
Reply
Map
View

Click here to load this message in the networking platform