Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Data buffering not working
Message
From
21/06/2001 13:35:33
 
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00521900
Message ID:
00522048
Views:
16
Vlad,

CurVal() shows what the value is on the disk (and might have been changed by someone else) and OldVal() shows what the value was the last time we loaded from disk (what we might have changed).

I use GetFldState(-1) in my SaveRecord audit method were I am going to record the fields that changed. However it does require you extra programming to find if the one field we are interested in was changed. OldVal() starts with only the interesting field.

My further investigations show that if I force a tablerevert the field goes back to the old value. In otherwords the data buffering is working. OldVal() is not. I will see what GetFldState() reports.

Thank You - I will get back to you.

>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
Best Regards
Don Simpson
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform