Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Previus form
Message
 
 
À
23/09/1998 18:10:09
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Divers
Thread ID:
00140087
Message ID:
00140298
Vues:
22
>I have 2 forms. Form1 and Form2. Form2 can be called from form1 or directly from the main menu. Inside Form2, can I know if it was called from form1 or from the main menu? Thanks

In the form Load event, you can check for:

if type("_screen.activeform.baseclass") = "C"

If that is TRUE, then another form called this form. The called form is not the active form until the Activate(). You can then set a variable:

oForm = _screen.activeform

If necessary you can test, if oForm.Name = "Form1_Name" ...
Mark McCasland
Midlothian, TX USA
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform