Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to get the name of the active form?
Message
 
À
11/11/1998 11:08:39
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00156604
Message ID:
00156618
Vues:
32
>Hello
>Can anyone tell me how to retrieve the name of the active form from within a procedure (not using thisform)?

Jeff,

Object's have tow types of names, one is the contents of their Name property, the other is a variable that holds an object reference to them. If you need an object reference to the currently active form you can;
* Check to see if there is a form active right now
IF TYPE("_SCREEN.ActiveForm.Name") = "C"
   * If there is, then store a reference to it in the variable loForm
   loForm = _screen.activeform
ELSE
   * If there is no active form, do whatever you need to do about that situation
   * No form is active
ENDIF
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform