Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Closing open (modeless) form on app exit from menu
Message
De
01/04/1999 12:18:33
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00204080
Message ID:
00204306
Vues:
20
Thank you,

This is exactly what I was looking for.


>Larry,
>
>
* 15-Jun-98 CloseForms.prg
>
>* 15-Jun-98 made into separate program
>
>procedure CloseForms
>
>for i = _screen.FormCount to 1 step -1
>   * 15-May-98 added additional tests to prevent 1924 error
>   * 25-Aug-98 changed < to <=
>   if ( ( i <= _screen.FormCount ) and ;
>        ( type( "_screen.Forms[i]" ) == "O" ) )
>
>      if ( _screen.Forms[i].QueryUnload() )
>         _screen.Forms[i].Release()
>      else
>         _screen.Forms[i].Activate()
>      endif
>   endif
>endfor
>
>
>>How can I close all open forms when the user presses Exit on my file menu. I used to stick to modal forms and therefore the user could *not* select file/exit unless all forms were closed. Now I'd like to be a little more 'windows' like and allow multiple forms open at the same time, hence the modeless setting.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform