Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Automatically update fields
Message
From
15/01/2001 19:16:15
 
 
To
15/01/2001 16:29:53
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00463947
Message ID:
00464008
Views:
16
>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.

Do you have any code in the .LostFocus() of the textbox? Have you stepped through the code using the debugger?
Regards. Al

"Violence is the last refuge of the incompetent." -- Isaac Asimov
"Never let your sense of morals prevent you from doing what is right." -- Isaac Asimov

Neither a despot, nor a doormat, be

Every app wants to be a database app when it grows up
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform