Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Data buffering not working
Message
From
21/06/2001 10:25:27
 
 
To
21/06/2001 10:19:13
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00521900
Message ID:
00521906
Views:
18
Hi!

I usually use the GetFldState() function to check if some field is changed by user. OldVal() is used only for updating process if you want to see what values are changed by other users the values if tableupdate(.F.,...) failed (by comparing NewVal() with OldVal()).

HTH.

>I have started a new form using my base form class which I have used for over 50 forms.
>
>The Base form class uses data buffering. It contains a "Changed" method which is called from the valid event of the textbox. It compares this.ActiveControl.Value against oldval(this.ActiveControl.DataSource) to see if there was a change. If there was a revert toolbar button is enabled.
>
>This works on the other, older forms - not the new one.
>
>oldval(this.ActiveControl.DataSource) returns the NewValue as if the change were already committed.
>
>BaseForm BufferMode is optimistic. I have tried BufferModeOverRide for the cursor of 1,3 & 5. All fail to catch the change.
>
>MultiLocks is set on.
>
>I have checked all these settings from the Valid Event of the textbox before Changed().
>
>I have run into this before and cannot for the life of me remember what the problem is. What am I missing?
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.com
ICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs

It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform