Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Automatically update fields
Message
From
15/01/2001 16:29:53
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Title:
Automatically update fields
Miscellaneous
Thread ID:
00463947
Message ID:
00463947
Views:
45
Hello, All.

I am trying to make a framework. I have a class, named UpdateChecker, which should handle the multiuser update, primarily testing GETFLDSTATE(-1), OLDVAL() and CURVAL(). But look what's happens:

If my form is in edit mode (signalling this by flagging a property) and I click or tab in a textbox, then I press ESCAPE, the cancel button in triggered.
In this buton, I have the following code:
IF THISFORM.Modificare && Modificare means EditMode
TABLEREVERT(.F.,"users_login") && this is a view
...
ELSE
...
ENDIF

It seems to be ok. If I click on the Cancel button, the event is triggered correctly. But If I press Escape on the textbox, I get an Update Conflict error (but I didn't modify anything!) and GETFLDSTATE(-1) returns "1111111" - means no modify. Then VFP gives me an C00005 error and crashes.

Please, does know anyone what's going on here?

Thank you.
Grigore Dolghin
Class Software.
Next
Reply
Map
View

Click here to load this message in the networking platform