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.