Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Read/Clear Events
Message
De
02/04/2007 13:48:48
Irv Adams
MSC Managed Care, Inc.
Floride, États-Unis
 
 
À
30/03/2007 13:33:18
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01210464
Message ID:
01211381
Vues:
15
>I have a small program
>USE myTable
>DO FORM myForm
>READ EVENTS
>
>The form has an option group and a command button. The command button runs some code based on the value in the option group. There is also a close button on the form. The close button calls Thisform.release.
>
>The code for both Release and QueryUnload is a simple CLEAR EVENTS.
>
>When the form's ShowWindow property is either "In Screen" or "In Top Level Form" closing the form does not close the program. Something is still running and I need to go to the Program -> Cancel option on the menu.
>
>If the form's ShowWindow property is "As Top Level Form" it works as I would have expected.
>
>Can someone explain what I am missing about event processing that causes this behavior.
>
>Thanks.............Rich

Rich,

Just some troubleshooting guesses...

In general, running a Form under the FoxPro _Screen object can leave certain things unresolved or still in existence when it exits. IMHO, it is always better to run Forms exclusively As-Top-Level or run an In-Top-Level under as As-Top-Level only.

Do you have Public variables?

Do you issue a RETURN at the end of the .PRG?

Make certain you close the DBF or SQL connection(s), etc. Maybe issue some of the other 'CLEAR' commands in addition to Clear Events.

HTH,
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform