Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Closing Windows
Message
De
15/07/1998 15:14:54
 
 
À
15/07/1998 15:08:31
John Goodrich
John A. Goodrich & Associates
San Jose, Californie, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Divers
Thread ID:
00117759
Message ID:
00117766
Vues:
19
Hi John

>When i am working in the program manager, I run my main program
>for testing, at times when it bombs forms are left on the screen. I can get to the command box. but I cannot get the forms closed,
>I usually have to exit VFP and startover. I have tried clear events
>close all databases, release forms. I know there probably is an
>easier way then starting over everytime, but right now its a mystery
>to me.

This is my way of closing all forms on an error or on shutdown:
FOR i = 1 to _SCREEN.FormCount 
   IF TYPE("_SCREEN.Forms(i)")="O"
      _SCREEN.Forms(i).Release()
   ENDIF
ENDFOR
------------------------------------------------
John Koziol, ex-MVP, ex-MS, ex-FoxTeam. Just call me "X"
"When the going gets weird, the weird turn pro" - Hunter Thompson (Gonzo) RIP 2/19/05
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform