Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
After query, can't reselect original table
Message
From
23/06/2006 12:34:42
 
 
To
23/06/2006 12:05:14
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 6
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01131126
Message ID:
01131220
Views:
26
That was it. Something in my code was calling for the form to be Refreshed, at which point it started trying to work with Fingoods again. I simply left the "select fingoods" line at the top of that code and all is well.

I never realized that simply closing a browse window would cause the Activate code to run on the window below.

Thanks very much to everyone for their help on this!

>>I now see what's happening, but don't understand why...
>>
>>When I close the browse window, it's doing a Refresh. And it's trying to perform operations on fields from Fingoods when the cursor is still active. If I put "select fingoods" at the top of the Refresh code, life is good.
>>
>>It's not hurting anything to have that there, but why would my form refresh itself in the middle of the Click event, just from having a browse window closed?
>
>It's regaining focus - maybe there's some code in .activate of something that calls for a refresh? Try to start an event log in the first line of the .click, and close it at the last line. Maybe that'd tell you what's going on.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform