Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Close top form from toolbar
Message
 
 
À
26/01/2005 18:43:58
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00981030
Message ID:
00981534
Vues:
28
>My main form which is a top-level form has A toolbar that is opened as in top-level form. What is a way to close main form from a click on a toolbar button?
>
>Thanks, Mark

Forget variables, etc. You can only have 1 top-level form in your app so use the following code to get an object reference to your TLF:
LOCAL loForm, loRetObj
loRetObj = NULL
FOR EACH loForm IN _SCREEN.FORMS
    IF loForm.SHOWWINDOW = 2
       loRetObj = loForm
       EXIT
    ENDIF
ENDFOR
RETURN loRetObj
Mark McCasland
Midlothian, TX USA
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform