Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Undocumented error 2072 still persent and still undocume
Message
General information
Forum:
Visual FoxPro
Category:
Visual FoxPro Beta
Miscellaneous
Thread ID:
00911913
Message ID:
00912220
Views:
10
>>>I just waisted 8 hours fighting without results against undocumented vfp8 error 2072 (cursor contains unsaved changes...). The error is very hard to track. I tried the application also under VFP9 beta and unfortunatly I see the same bad behaviour. I can't create repro code. I searched UT messages and try some suggested solutions without happy end. It seems that the error is somehow connected to a grid placed on a pageframe page and the moment when new record is added and edited in buffered view. The troublesome form is very similar to other forms that work without any problem. In the moment I hate VFP ...uuuhhhhrrr...
>>
>>I've had that problem and fixed it. If I remember right, I had to issue a setfocus() somewhere to prevent the error.
>
>After reading your message I played with moving focus again and now the problem dissapeared. Moving focus from grid to page before actual action was the solution. I still did not know why my other very similar forms did not need the special treatment. But it works and now I am happy - thanks !

Yep that's how I fixed here. I have the same situation too - some forms work without the setfocus() fix - others don't.
ICQ 10556 (ya), 254117
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform