Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Strange occurrence
Message
From
17/02/2005 16:34:30
 
 
To
17/02/2005 00:38:23
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Database:
Oracle
Miscellaneous
Thread ID:
00987767
Message ID:
00988111
Views:
21
>My application consists of a main form with 2 grids on it. From a menu I pull up a modal form. I run a process from a button on the modal form which displays a thermometer form. When I click on the close button of the modal form, I call a table update in a transaction in the destroy event of the form. Initially I was getting a section of code from the grid form being fired when the end transaction is executed. So I placed a lockscreen around the call to the transaction routine. This moved the call to the grid form to when the lockscreen was turned off.
>
>Why would a section of code on the grid form be called from the modal form during the destroy event? How do I prevent this?
>
>Jason


This sounds similar to trying to run a report by clicking in a grid. The trick is to set the focus to some other control besides the grid when you call up your other form. You can then set the focus back to your grid when you return.
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Previous
Reply
Map
View

Click here to load this message in the networking platform