Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Strange occurrence
Message
De
17/02/2005 16:34:30
 
 
À
17/02/2005 00:38:23
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Database:
Oracle
Divers
Thread ID:
00987767
Message ID:
00988111
Vues:
22
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform